massive cleanups

- renamed classes
- updated to phpunit
- more PSR compliance