Refactored out a device manager module which app can now use, emit new events from device manager when relevant device added or removed