Added events to comply with Backbone.sync

- Added 'sync' and 'error' events
- Added relevant tests
- Fixed a couple of typos in comments