improve error management

Error events triggered before connection is complete are sent as an
error to the initialize callback. Later they are forwarded.
Merge branch 'master' of https://github.com/albanm/nsi-queues

Conflicts:
	index.js