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.
The commented ```#if File.exist?("target/webapp/javascripts")``` - was it for debugging? Did you miss uncommenting them or are the unnecessary? If the latter, you should just delete them.