Move all code from general into modules.  The code is now sufficiently granular that we can attack one module at a time and improve it.
Created PDO connector class, but need to work out how to inject its config - sounds like a job for pimple.