Fix typo returning error responses.

The exception case never actually returns an error because it
goes to the exception handler instead, which tries to shut down
the server, but this makes the 'unknown action' case work.
Log invalid action requests.
Merge pull request #3 from rillian/error

Fix returning errors to the json client.