A lot of refactoring and attempts to work with $resource API