Beginnings of specific API calls.

I'd love to get some code generation in here. Otherwise, this thing
will look like a very big mess of one line functions to one common
helper function.