Refactor to PSR-0 autoloading and namespace use