use the original version of this file instead of maintaining a copy
moved the last api controllers into classes
fixed oversights
those files are all unused at the moment

Plus I have a nicer way of handling JSON responses in mind anyway, so good riddance.