First step: new DB class, new ConfigHelper class.
Removing executable bit on a bunch of files that don't need it.
First step of OO-refactoring complete; got classes for DB, Log, Config, CLI commands.
Updating copyright notices
Fixed inject-includes script to correctly handle PHPDoc comments & require_once() calls