Move Ext.onReady into controllers

Make The Gallery compatible with The AjaxManager plugin.