Account page, new device page, cleaned up ...

cleaned up the controller, added some more functionality to the devices
page, and added the add device page