Use different protocol for apigen dependency.

Avoids Github's API limit when using --prefer-source.
Add phing to dependencies.
Added dependencies for unit tests.