Merge pull request #142 from mknoszlig/master

Problem: cannot use inproc transport when creating sockets.
define global context in template.
Merge branch 'master' of https://github.com/zeromq/zproto