Refactored IO package
Added REST calls to Device
Merge origin/master