General purpose cleanup.

Changes:
 - Organized #include file ordering.
 - Removed generate hash from the classes themselves.
 - Separate out sizetag into its own file.
 - Code-style updates.
 - Prime generator simplified.
 - Parser/lexer interface refactor.