Externalize controllers and remove ng-animate dependency