Refactor/reimplement and test replacing of documents.
Parse json string into object also in case the response was error.
Cover update/replace document with revision and 412 tests.
Fix retrieving of error objects.
Refactor/reimplement and test getting documents and fix error object retrieval.
Settings now contain globals object.
Refactor document operations to provide fluent API for settings.