Merge pull request #397 from Trismegiste/master

PSR-0 compliance
Tag fields are now saved to the MySQL search index
Catch debugging that was committed erroneously
Fixing some sloppy code that reached shell but caused an error
Minor formatting change
Fixed multiple references to $_SERVER vars

Fixes #399
Refs #398
Improved support for multitenant themes & plugins
Fixed path missing slash issue in plugin loader
Introducing hijackPageHandler
Better page hijacking
Correcting errors
Slightly less oblique db error screen
API fixes
Introducing base class for dealing with Known hubs