Major autoload file, mostly copied from Composer

Change-Id: I080689ada0c6fafeb23a6450a4f6dac730ca7221