API, issue 1471: Use groups for socket permissions

As discussed in PR #1417, this PR implements @mhennings idea to allow users in the docker group to run the client mode. Still the same original security concerns apply so the sysadmin should carefully consider them before adding users to the docker group.