Tidying up the node code and started to get the device registration working. Also got the Cordova app to a reasonable point and the redesign of the front-end is coming along nicely