Added composer integration and fixed tests to work with the autoloader