Create/update model via definition endpoint (fixes #231)

Allow to GET/PUT definitions on the same API end point
It was just to retrieve definition and permission in one call. Not entirely necessary indeed... I can get rid of it