Conservation laws for free-boundary fluid layers