Added functionality to add a new device

TODO: redirect new device save to the specifc device page for the newly
created element, create specific devices pages and hace the sidebar
reflect what device is currently being eddited