Fixed out-of-source build
Rename engine's methods to improve code readability
Identity can only be set on sockets that can connect to ROUTER
Merge pull request #21 from hintjens/master

Backporting fixes from master