Fix hidden problems in versioning-suite tests
Add statusCode to interpreted status object
Fix SyncError class

It inherits properly from Error class now.
Properly handle sync errors (fixes #549, fixes #740)
only set state to offline on network errors
build head