use error_chain! where possible
change connect_loop to init_callback_loop
Added documentation.
Bugfixes for documentation tests
Add example to documentation. Remove GNS::lookup function.