Fixed test to use xhr method to avoid issues when migrating to rails 4.1
Upgraded to Rails 4.1
Moved assets pipeline configuration to assets.rb