Use `notify` not `resolve` with `watchHeading`
Handle Connection.NONE for offline

Fixed Connection.NONE not being handled as an offline state.

Also corrected a typo `s/Sate/State/`.

In technical terms, Connection.UNKNOWN doesn't mean offline, literally meaning we don't know, but need more thought on how to handle this. Throw an exception?
add file plugin
add file plugin to module.js and to testing
Merge pull request #26 from evert0n/fix-device-orientation-promise

Use `notify` not `resolve` with `watchHeading`
Merge pull request #27 from robations/patch-1

Handle Connection.NONE for offline
Merge pull request #29 from pbernasconi/file

Add File Plugin