Replaced 'require_once' calls with 'PGQ' namespace & moved logger constants inside class.

This makes it easier to use the library as a modular component that can be added
to projects with different directory structures.