Fixed rest api for saving the model attributes

Now we can just save the modelInfo back either at

POST api/models/
POST api/models/modelname

{
name: modelname // can not change
version: no // can not change
attributes: {…}
}