Added close & error handlers for device stream. Added serial stream open handler. Moved device opts to this.opts
Added handlers for plugin events.
Added handler for device config events (previously just modules). Added config handlers (PLUGIN). Other fixes.
Merge branch 'serial-wip' into remote-config
Remove whitespace from new logging format