Clean up Page Messages code

* Added Page Message class, to replace old pagemanaager.php
* Added utility functions to quickly check if a page exists