Added protobuf messages and wrappers for creating message structres.
Also some initial setup on zmq_target.

Updated message.proto definition and initial work on implementing zmq_target.

Saving message.py changes before deleting. Just in case if its needed later.

Removed message.py module.

Updated todo.

Added wrapper for creating protobuf message structs.

Updated message structures.

Added more wrapper functions to create message structures.

Added tests for protobuf messages.
Added errors.py module fro u1db source trunk and fixed some minor bugs.
Added runner scripts for client, server and application.

Fixed bug in utilities.

Added runner scripts. Only needed for some real time testing.

Added errors.py from u1db source trunk.
Revamped zmq_target to use zmq.Poller() and replaced DEALER in client
with REQ.

Removed old imports.

Ditched reactor in zmq_target and falling back to poller to get lock-step get_sync_info working.

Updated client_runner module.

Wrapped doc strings under 79 chars.

Modified deserialize_msg. Changed tests accordingly.
Added get_sync_info in zmq_target and utilities for U1DB.

Added utilies for getting U1DB data. Note: Implementation detail not to
be considered now. Just a placeholder and simulates workflow.

Fixed bug in get_source_info. Forgot to return info.

Got get_sync_info working in zmq_target.

Fixed comment regarding message frame information.
Added record_sync_info in zmq_target and message handlers in zmq_server.

Added socket option to relax matching req-rep pairs.

Changed message field names.

Changed handling of messages. Added handlers.

Added record_sync_info in ZMQSyncTarget

Added todo on removing identifier wrapping over sync_type and zmq_verb messages.
Added send_doc_info in zmq_target and corresponding server side logic to
handle it.
Updated SendDocumentRequest and SendDocumentResponse message.

Added send_doc_info method to ZMQSyncTarget. This method will send documents changed at soruce one at a time after get_sync_info has completed.

Added comments to impove code readability and used wrapper of _socket.send_multipart().

Added utility parse_response.

Added utilities get_doc_info and get_source_replica_uid.

Added server side logic to handle send_doc_info. Fixed bugs in zmq_target. Working as a whole. :)
Added working get_doc_at_target in zmq_target along with server side
logic to handle it. Implementation detail is absent though. Not merge ready.

Added get_doc_at_target in zmq_target.

Added server side logic to handle get_doc_at_target.
Added test run of record_sync_info. Note: Just exchanges messages for now.
Squashed a minor commit to review fixes.

Added fixes on review comments on pull req #3. Mostly minor.

Importing only whats needed.

Added comment to explain socket options zmq.REQ_CORRELATE and zmq.REQ_RELAXED on REQ socket in client.

Added todo about handling string length while implementing doc chunking.

Added todo about parallelizing send document and get document operations.

Doc indentation fix.

Fixed typo in doc.

Updated todo about moving target_id etc. to a target_settings file.

Updated import styles in zmq_client, zmq_server and zmq_target modules.

Added todo about handling DecodeError and trying to recover sync.

Changed numbers in identifier type to named constants.

Changed manual assignment of named constants in protobuf_settings to make it assign from proto.Identifier.Type enums.

Doc fixes in utils.py

More doc fixes.

Added todo about completing handle_put_sync_info_request function.

Updated todo about removing unneeded deps from u1db.__init__

Removed assert statement.

More doc fixes.

Minor typo fixes.
Added sync_exchange using a sequential mechanism for sending and
receiving docs. INCOMPLETE for now.

Updated todo.

Made target_generation and target_trans_id optional in GetDocumentResponse message.

Added doc_rev attribute to GetDocumentResponse.

Added sequential send and receive docs in sync_exchange. Incomplete now.

Fixed protobuf tests wrt new changes.
Added document to explain the sync steps.
Finished implementation of sync_exchange.

Added new message structures: DocInfo, AllSentInfoRequest and AllSentInfoResponse.

Updated AllSentResponse message struct and added some comments.

Some doc fixes.

Added helper utilities for new message structures.

Added tests for new message structures.

Updated message structures.

Updated tests.

Completed sync_exchange method.

Added server side logic to handle intermediate ping ack. Fixed bugs in sync_exchange. Finally works.
Fixes json serialization for u1db.Document instances. some code cleanup.

Added json serialization of strings for creating Document instances.

Added doc string.
Fixed issues based on review. Mergable. :)

Changed sync-to to sync-from.

Added variable to name keys, instead of typing them out.

Fixed ambiguos doc strings.
Merge branch 'u1db_implementation'