Split composer logic out into separate file.
Add composer support to symfony1