Add input to specify sleep time on debug page.
Fix duplicate LogEvents and Errors being created when multiple requests are submitted in quick succession.
Append '?days=0' to the end of all JSON calls that support it.

This is so that later, when someone gets around to adding the buttons
that will make it show stats for just the last week/month/etc,
they'll immediately see how to go about passing the 'days' argument.
Change URL used to get log events in JSON.

Before, it was <server.address>/log/details/
Now, it's <server.address>/log/eventlist/

This makes much more sense, and also matches the way the error list is retrieved.
Fix bug preventing error reports from being submitted.
Remove debugging print statement.

Also, have it return 500 instead of 400 when an error occurs.
Add better error logging when /log/add/error/ fails to log an error.