Added Page class

This was done as a general code clean-up, and to allow easier
extensibility in the future
CompilationError is now properly exported
Typo fix
CompilationErrors are now caught and printed to stderr

Explicit is better than implicit™
Fixes in Page class