Update chat.php

The terminal will show a lot of notices and errors related to an inability to route messages from urls other then /chat. By creating a catchall route we can avoid confusing people.
Merge pull request #23 from DannyWilkerson/patch-2

Update chat.php