Refactor assets/layout compilation rake tasks