Merge pull request #43 from oroulet/master

Refactored address selection for binding of server socket.
Fixed hang of opcua client. fix sending of acknowledgements in publishrequest.
make events work on server with external client