Deleting API stuff

I couldn't find a revert button, so I just deleted all this. It's not even
packaged correctly, and why is there so much of it? Can't we have a little
API?