Added API to send messages; tweaks in common.php
Merge branch 'master' of https://github.com/timothyha/chat-api