Move some setup from application js to initializer

Some global Ajax and I18n setup was done in the application js. Moved
this to the application’s constructor `App.initialize`.