S4 based API data model

Completly redesign of the user level API