Adding composer support

I believe you should separate code for different version into different repositories, but for now, it looks not so bad :)