Added debug code, modified sensor values, added more wallmode-specific routines
Added wallmode helpers

Conversion between the sides of the player as wallmodes and wallmodes on
the global scale.
Refactored names, more helpers, xml comments, limited while loops

Put a limit on the pushout/pushin routine to prevent infinite loops.
Added helper function in CollisionMask to return wallmode based on
angle. Refactored names of GetLocalMode and GetGlobalMode to
GetLocalWallMode and GetGlobalWallMode. Replaced some wallmode
calculations with the new helper functions.