Added some helpers to "common".

These include typedefs, character classification functions, string conversion functions and a class to help us track locations (of tokens, etc.) in the input stream.