Refactor lookup command and partially fixed #72.

This PR refactor Bowerphp::getPackageInfo() - partially. 
Should convention generate test-documentation of code.