[WIP] Initial api bundle

WIP, do not review yet.
Same about copy&paste...