Passing a variable as a reference to array_pop in AbstractCommand.

Call-time pass-by-reference lead to an error in PHP >=5.4.
Added output of the container ID in the apache example
Added another apache example.
Added a flag to the RunOptions so that one can return the container object instead of a JSON.