Fixed bugs

PHP 5.4 has no finally
Bug fixes

- Removed old $config user location call in the "Gatekeeper" class.
- Removed old $config passing to the "Guide" class in the "Main" class.
- Pass $this->statuscode instead of local $statuscode in the "Main"
class.
- Only $pdbc->quote() the referal instead of the entire var in the
"Logger" class.
Merge pull request #2 from miWebb/Develop

Develop