Implementing basic connect and client list, also some bug fixes