Added autoloading in composer

With this change the library will be automatically available in projects using it from composer, without the need of automatically having to require the main file.