REST API for models, first commit

Experiments POST and GET work already. Work in progress