Some refactoring

- Factored out common code into UtilitySubs.pm
- Almost completed userdel implementation