Removed some test log statements.
Un-deprecated the Device object.

It turns out there are some uses for it after all, and there isn't a penalty to keeping it around.
Added a note to myself about a strange decision with the socket setup.
Fixed a problem with promise being null
Fix a defect with cache auto adjustment.