another pass at cleaning up angular code. moved loading of app to one single url (app.jsp at /url/** or /search/**). DRYed up controller code, moving everything to angular.extend base controller