Moved around some rest stuff

Seems to work, we can rename or modify stuff to fit frontend work if needed.