Fixed autoloader

It wasn't psr-0 compliant. also added vendor to .gitignore

Documentation about composer autoloading: http://getcomposer.org/doc/01-basic-usage.md#autoloading