Merge pull request #41 from toxeus/develop

TR1: replace _SharedPtr macro
Removed FOR_EACH macro usage.
Merge pull request #43 from murrekatt/develop

Removed FOR_EACH macro usage.
CMake: add -Wno-missing-braces to CXXFLAGS

This warning interferes with *correct* initializer list usage
with std::array.

See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137
Merge pull request #42 from toxeus/noMissingBraces

CMake: add -Wno-missing-braces to CXXFLAGS
Removed unnecessary comments and commented out code.
Moved function into anonymous namespace and rename.
Merge pull request #44 from murrekatt/main_cleanup

Removed unnecessary comments and commented out code.
Cleanup if statements.
Merge pull request #45 from murrekatt/main_cleanup

Cleanup if statements.
Removed unused define.
Change to automatic variable for ZMW socket wrapper. No need for allocation on heap.
Cleanup of logging to avoid __FUNCTION__
Merge pull request #46 from murrekatt/main_cleanup

Main cleanup
Adjusted comments around if-statements.
Fix for main function signature.
Moved out helper class into anonymous namespace.
Changed to use nullptr.
Clarified endifs.
Merge pull request #47 from murrekatt/main_cleanup

Even more main cleanup