Merge pull request #473 from evoskuil/master

VS project updates, sort source files, Windows fixes for new code.
Whitespace fixes
Thread local storage on gcc uses __thread
Problem: _test methods are not consistent

CLASS RFC specifies void methods; if a test fails the code should
abort. There is no semantic for returning an error code. However
many of the classes used an int type for their test method.

Solution: change all those classes to use a void method.
Added zfile_has_changed() method & test
Updated man pages
Problem: need to reload config file when changed

Solution: zconfig_has_changed() and zconfig_reload() can be called
from in a daemon at regular intervals to reload a configuration
tree from its original file location, when changed externally.
Problem: need access to last-loaded config filename

Specifically, for logging reload operations.

Solution: zconfig_filename().
Finished initial zactor implementation

Problem: zthread API too complex and not consistent with CLASS
standard. New zsock approach removes need to pass zctx down the
chain. Removal of zctx offers a simpler API, which zactor uses.

A zactor has a specific start-up and shutdown protocol, using
messages over the PAIR-PAIR pipe. This standardizes emerging good
practice for attached threads.
fix two minor free after use errors
Merge pull request #475 from klnikita/master

fix two minor free after use errors
Merge pull request #474 from hintjens/master

zconfig_reload(), zactors, and other great stuff
Updated man pages
Added zsock_send/recv

Like zactor_send/recv, these methods operate on zmsg_t objects. We could
later expand zsock and zactor instances to accept zframes, zchunks and
other resolvable types (it might be nice to receive a full zhash from a
socket for example). To be seen...
And updated man pages again
Merge pull request #476 from hintjens/master

Added zsock_send/recv methods
Problem: zactor pipe endpoints were not unique

Since zmq_unbind doesn't work properly on inproc, this meant if you
created and destroyed actors, later bind calls could fail with -1.

Solution: ensure pipe endpoints are always unique and never reused.
Merge pull request #477 from hintjens/master

Problem: zactor pipe endpoints were not unique
Fix memory leak in zsocket
Merge pull request #478 from hurtonm/master

Fix memory leak in zsocket