Update credentials gathering and url formating
Use a separate thread to send data to API

* Rewrite sender completely
* Fix minor issues
* didn't test it
Add watchdog and module 'urlparse'