Merge pull request #4 from jtomaszewski/fix

Fix 'online' event handling on Cordova
Bump version to 0.4.5
"main" script should be lib/index.js, not angular-cached-resource.js

Otherwise, browserify would be unhappy.
Bump version to 0.4.6
Cache entry dirty flag cleared after successful write
Bump version to 0.4.7