Refactored a little and added handling of limit in query.

logger.coffee: For dumping data to console.
protocol.coffee: Handling zmq sockets and protobuf serialization.