unit tests

- added a bunch more service unit tests, better coverage now
- fixed found issue in webapp StorageService, was returning array when
only a single object was wanted
unit tests for cordova storage

- wrote file mock
- made some fixes to service, to propagate rejects