Cleaned up implementation of automatic bug reporting.

Moved anything that could hang the server off into its own thread