Added method to update a document
Added method to simplify creating a new client
Added unit test for version numbers and document updates
WIP added an example of client syncing + tests
Reorganization of the unit-tests
 * Moved tests to unit-tests and cleanup
 * Added utility functions in unit-tests/utils.py and make the pickle file to be per host
Added more tests and improved handling of conflicts

synced_client.py
 * Added to_json to convert SyncedObject back to json, with a whitelist of fields for SyncedDocument
 * Added comments and cleanup of the (Simple)ConflictResolver classes
 * Changed "server" to "remote" to make it more consistent, cleanup in variable names
 * Added code to deal with document deleted on server but updated locally to recreate the document in needed

test-sync.py
 * Added more unit tests
 * Changed the clear_library() and seed_library() to work in parallel to speed up the tests

test-update-version.py and test-sync.py
 * Added detection of server version and config file argument
Added support for new local documents
Updated code to work with the new response format

Added some more details in the tests
Split the syncing logic in smaller functions
added import sys
fixes #13
Merge branch 'fix-sys-import' of github.com:neuromusic/mendeley-oapi-example into fix-sys-import
Merge pull request #14 from neuromusic/fix-sys-import

Fix sys import
Add warning to unit tests
Added readme for tests
Updated test-update-version unit tests. Added test for rate limiting.
Reduce json object. Skip invalid_field_type test until it's fixed.
Test two consecutive updates. Second should fail if made in the same second.
The test might fail if the previous update takes longer than a second to run.
Use requests.content instead of raw.read() to get the body of the response for file download
Merge branch 'master' into test_update_version_rosario