app_terminal.py:  Fixed a bug that was preventing the max_terms policy from working properly with ANONYMOUS users.
gateone.py:  Improved the error logging/handling when something goes wrong with a WebSocket action.