We've started seeing a lot of:
ConnectionError: ('Connection aborted.', BadStatusLine("''",))
Hopefully this fixes the problem. Its hard to test, so I'll
have to check the logs after releasing.
- move analytics creation earlier in the startup process
- add several events to track startup, startup failure, other errors
- abstract platform detection into separate file
- add "build" type to platform so we can differentiate devs vs live users