Refactored snippet into server that will track devices that come online and allow access in node space for them eventemitter style.