Rails4 assets

Changes to get asset pipeline working for rails4. Some of the velocity pages do not look pretty, but getting some help from @ermauliks to get them fixed. More pull requests to come soon.
Can you please add a test to assert that the variable name remains ```assets``` and we don't accidentally refactor that at a later point of time.