Code clean up.
Re-fixed device write to use full abstraction architecture with a returned promise - etc.  o_O