Add composer detection.

I know a lot of you don't use composer but this 4 lines of code would help me. First of all I could get dependencies from packagist.org or my own private packages. Packages don't have to be extensions a lot of them are utilities that help.