UI for datasets

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