General cleanup, readability enhancement, and bug fixes.

Changelog:
Changed $logging to be a boolean rather than a string.
Converted hash() to use a switch statement and a constant value rather than a string for readability.
Merge branch 'master' of https://github.com/Alphasquare/UniversalEngine