User lockout protection, fixed #666

Protection of updating and deleting users and groups if this caused a lockout of the requesting user.
Merge pull request #708 from normanjaeckel/Issue666

Issue666 – User lockout protection
Fixed #724

The motion updated view now uses the last_versio instead of the active_Version
Merge pull request #727 from ostcar/issue-742

Fixed #724