Refactor rake task for the assets pipeline.
Merge changes.