Some bug fixes and additional functionality for jetcd.

Hello,
Thanks for writing a java etcd client!  In using it, I found a couple of bugs, and also added support for the v2 api and directories.

Best
--brendan