avoid exceptions by moving http requests to bg thread
fix bug causing events hapenning in the same second to be smashed together as a result of timestamp imprecision