Implemented basic 'peer' listener and support for testing via the console client.