Nodeid

This addresses #44 by extracting out the node id for the active agent from the Logging Information provided by the server.

Sorry about the mess on this one, I can't seem to get things to be clean :(