fix profile script (broken due to unsupported command)
fix User class for privilege renamings and additions
specify tests directory for phpunit
add first test class UserTest
Merge branch 'master' into testing

Pull the fixes to the User class, thus making the new tests pass.