- unify exceptions
- finish persistence
- start working on returning JSON