Processing the composer dependencies when creating the images.

* Making the posedoc tool install the composer dependencies
* Debug option added for more detailed debugging messages
* Initializing the OAuth token before creating the images