Refactors to a simple $http based api interface
- fixes bug with loading/saving