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

Allow to GET/PUT definitions on the same API end point
the ``handle_put_model`` method will just iterate theempty records collection, but won't erase the existing records