Replace procedural management of pages to object Pages. Remove firephp. Add php-ErrorNot on exception catch block.
Replace procedural management of pages to object Pages. Remove firephp. Add php-ErrorNot on exception catch block.

Fixes issue 5

xrogaan/ayans