Refactoring controllers and services
Added jsonp call to analysis factory, tests for analysis factory