Motion identifier setting and versioning.

Now the view decides, whether to setup a new version or not. Automatic identifier setting is the default. Also some fixes of the motion save method.
Fix after review No. 1