1. Fixed problems with auth.
2. Refactoring of SyncAdapter and HttpConnector
Merge pull request #4 from SergeyGadzhilov/master

 Fixed problems with auth.