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

Allow to GET/PUT definitions on the same API end point