Start of unit test structure, minor refactor of autoloading

Started a structure to allow for unit tests for the new project. Minor refactoring of the autoloader into a class so it can be used by the bootstrap file for phpunit.

Unit tests can be run with "phpunit" in the tests directory. Right now the only test is for the event collection class and it's only for the url building. The actual calls are mocked right now so it is a real unit test.