optimize autoloader to speed up travis builds

composer.phar install --optimize-autoloader
add .composer/cache to travis cache directory to fetch deps from cache