Port to gevent
Possible fix to mismatched mailbox bug
Possible fix to fields bug
Cleaned up some code and improved device offline handling
Cleaned up some stuff
Backport to threads