first step of file routing and storage class
also made beginning of pdo integration
removed some overhead in some classes, see changelog