ApiFns can now return arbitrary types.

Not all GitHubApi fns actually return objects, so was a bit stupid
setting the type to objects.  Still not added any actual type
information, but this should allow people to actually use the various
functions.