Add config setting for api reporting.

For now, will be disabled in some cases, but I want people to be able
to set to "" so that it will always be disabled.
Add basic server reporting interface, needs work.
Cleanup, add notes for server reporting.
Add a simple spam protection limit to reporting.

And some small refactor.
Send server reports on a separate thread.

Well, maybe could be more efficient, but mostly worried about latency
not thread creation.
Enable on non-Windows, works on Linux anyway.
Add some basic reporting hooks.