pass error from sync task to client

Added passing of error from sync task to client. @jh-bate ready for review, with https://github.com/tidepool-org/in-d-gestion/pull/36
I know this has already been merged, but there's a spelling error here and in the next message -- instead of "where" found, it should be "were" found. Please fix?