Preserve the model id in the "Save As" operation

Also:

* Use the correct URL path
* Append "copy" to model name, if needed
* Add some descriptive comments
* Remove obsolete login check