Refactors all around

- ~~test dir~~
- controller refactors to be more API driven
- other things? maybe? (phpcs and stuff)