Added getTopics + tests + sockets.js clean up.