Refer to context in socket
Fixed #13, implemented inproc protocol