Fix formats passed in ztester tools

Caused format specification errors under clang on MacOS:
argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
Merge pull request #227 from twhittock/format-fix

Fix formats passed in ztester tools
Problem: zyre_peer_connect using bad endpoint

Due to confusion in design, node was sometimes announcing internal endpoint
like "tcp://*:12345" for public use in HELLO, causing failure in
zyre_peer_connect ().

Solution: remove confusing API options, require that zyre_set_endpoint
provide an endpoint valid both for bind and for connect, and announce the
correct endpoint in HELLO messages.
Fixes for format errors (%lld <> int64_t)
Problem: beacon discovery was broken

Solution: fixed test of zpoller return value on timeout.
Merge pull request #228 from hintjens/master

Problem: zyre_peer_connect using bad endpoint
Cosmetic fix to method headers
zyre_dump sends node state to zsys log
Merge pull request #231 from hintjens/master

Send dump state to sys log
Windows compilation fixes for znode.
interface is a reserved word in MSVC, and cast issues
Merge pull request #232 from twhittock/win_node_fix

Windows compilation fixes for znode.
zyre_node_stop was accessing self->beacon after it had been destroyed, causing zbeacon_socket() to assert
Merge pull request #234 from cekoski/master

zyre_node_stop was accessing self->beacon after it had been destroyed, c...
use zstr_free
Merge pull request #235 from jossgray/master

Use zstr_free in zyre_set_header.
zyre_node_start was not passing the correct port number in the beacon message
Merge pull request #236 from cekoski/master

zyre_node_start was not passing the correct port number in the beacon message
Whitespace fix
Minor code cleanups
Merge pull request #237 from hintjens/master

Minor cleanups