added support for multiple users in the backend.
style changes
refactored settings.pp
new unit test for users functions