Added basic user/group management. Minor bugfixes.