[CLEANUP] Replace the defined constants with class constants.

Constants defined via define() pollute the global namespace. This change
converts them to class constants.
Merge pull request #38 from jjriv/cleanup/defines

[CLEANUP] Replace the defined constants with class constants.