Fix some minor errors in yesterday's refactoring.

Begin implementing the trigger server:
  Parse requests
  Handle auth token requests