basics in place, tests needed
tests working and minor updates
Merge pull request #272 from evantahler/chat_with_auth

new chat authentication patern