[WIP] Initial api bundle

WIP, do not review yet.
This should be configurable.