Fixes for asset pipeline.

Remove rake namespace - clashes with rake variable used in precompiling
assets. Make sure the symlinking and theme installation are done before
precompiling assets.
Merge branch 'hotfix/0.16.0.4' into rails-3-develop