Restructure dashboard & bug fixes

- The start of some major refactoring on the dashboard.
- Fixed save & delete bugs with the key editor from #386 

Not quite ready, the front-end build is still surely broken.