UI for datasets

Fixes #273 

- UI for adding and editing datasets
- Fixes to datasets API