Implement dynamic routing system

Currently there is a lot of repetition in the code of the Models and Routes.
Steps to tackle this:
- [ ] Create dynamic routing for the API
- [ ] Create REST-Client for the frontend, which makes all the work
- [ ] Implement better error messages