Enumification

A set of patches to replace many of the constant int/short/etc values with enums and renaming of various other constants to conform with C# naming conventions.