Support different base api

Fixes #7
I do not want any "edit wars" unleashed :)

So I'll just remove this commit from the PR.