Upgrade CMIPREST, add DispatcherTest, refactor Dispatcher#handleApiRequest.

Removing the assumption that there might be separate RESTers for
different resource classes.