Register and use the autoloader during API calls

I'm running tests and they look good so far.  I have a second patch for the api/v2 directory, but I think I'll skip that, there's really no point.