Exit before request when offline
Added missing content type header
Reorganized backend using express
Removed unused modules
Syncer draft
Used proper error objects when promise rejects
Added fallback message if passed error is falsy