formatting for psr-2

Moved a few classes into their own files since it wasn't PSR-0 compatible for autoloading. Removed a bunch of windows line endings. Lot of whitespace trimming. I know large cosmetic PRs like this can be annoying, but it would make it easier to contribute back if these changes are merged, mainly the line endings.