Add options processing

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Create an ephemeral znode (asynchronously) upon reaching ZOO_CONNECTED_STATE

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Create a new session upon expiry and some other fixes

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>