updated the email to use the sytem config one
fixing up some odd tests;
updated the result check because now we're returning booleans as we expect;
casting the pref_user to a zero-length string to prevent nulls from sneaking in;
Merge pull request #200 from caseysoftware/master

Minor cleanups and fixes
style tweak on a button
cleaning up usage of the permissions id
updating permissions controllers to match
cleaning up usage of the access key
shifted all the post params to one place
removing more globals;
Merge pull request #201 from caseysoftware/master

Misc Refactorings & fixes
Merge remote-tracking branch 'original/master'