Add .idea (phpstorm) project directory to gitignore
Spelling error in comment
Incorrect naming of class instantation
Move special userid constants to bootstrap file to make sure they are always available
Fix incorrect variable usage