finished moving code out of sf.php into commands (tests passing)

Tests were fixed up to accommodate the new signature of some commands (in most cases just passing in a bogus userid string).  These tests will need to be fixed once the roles/permissions checks are implemented for each command/dto
moved register and get_captcha_src out to userCommands
added tests for ProjectSettingsModel taking into account user role
trying to fix errors due to missing "use" statements
moved private methods to bottom
added UserUnauthorizedException and stub for RightsHelper::userCanAccessMethod()