Refactoring of device layer
Basic support of Bluetooth devices
Some UI improvements