Api v2 - draft

DO NOT MERGE

This is only a draft to demonstrate the approach we chose for api v2.
This is not intended to be merged as it is. This pull request will be closed eventually. We opened it just to have place where we all could see the changes and discuss about them.