Added support for sockets and modified initialisation to use Q and proper logging with Good.