Refactor the lib directory to follow PSR-0 from PHP-FIG.