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

Allow to GET/PUT definitions on the same API end point
I am not understanding why you need to change that and create this method to the backend.