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.