added REST methods to get all users and to add user, code reorganized
Merge remote-tracking branch 'origin/master'