Move device implementation to ContextBase
Add zmq_proxy support

Closes issue #10