Merge pull request #116 from dybdahl/master

Fix concurrent modification error on shutdown.
Updating versions for jersey and netty
Removed internal dependency versions from here, replaced with project version. Less places to remember to update.
Upped timout value for archivertest, as it never runs within time on my laptop... And sometimes failes on Jenkins.
Added proto folder to protobuf generation.

 Some IDEs sometimes has trouble reading and importing directly from generated-sources.
Added WriteReport as return by Slot.write.
 - This will enable SimpleArchiver to write metadata files.
 - Other Archiver plugins might also be able to utilize this in the future.
Added finals, organized imports and simplified a few statements.
Added MetadataHandler for use with replay.
Removed setters in WriteReport and added those values in the constructor.
Fixes. * Sorry for lack of comment, I lost track of it all...
Optimized metadata writing by adding caching of BufferedWriter objects.
Added close method which closes the cached writers in MetadataHandler.
Fixed a test dependent on concurrency
Fixed a NPE on connection failure
Added option for plugin based logformatter.
Merge pull request #119 from acidmoose/master

Added option for plugin based logformatter.
Merge pull request #118 from mads-b/master

Small fixes
Added support for listening to resolver

Added resolver-expression flag which can be used to register a listener that will help with debugging.
Setting that flag when running ZkTool will setup a listener which will listen to and write to console any events matching the expression until user terminates the listening.
Merge pull request #120 from birgirst/dynamic-resolving

Added support for listening to resolver for given expression
Fixing exception handling to make zktool exit correctly on error

Refactored the main method to pull out different handling of flags that are independent.
Added a finally clause to close cloudname to allow the main method to return in case of an exception.
Merge pull request #121 from birgirst/main-finally

Fixing exception handling to make zktool exit correctly on error