Complete refactor of the program

Recreated most of the api_server library.
- Separation of concern between routes, resources, and database.
- Properties are internal, Fields are usable by the user.