Added polling for messages from the server

#51 should be completed, @tbgeorge, can you sign off on this functionality?