Extensions install now supports pecl and github repository. And Added extension known to display available versions.

Signed-off-by: Rack Lin <racklin@gmail.com>
fixes typo and refactoring.

Signed-off-by: Rack Lin <racklin@gmail.com>
Merge pull request #401 from racklin/github

Extensions install now supports pecl and github repository