Putting together some more plumbing for api registration.