New logic for user name.
Rails 4 upgrade.
Moves middleware extension to engine.rb.
Includes jquery supported by ember.js.