Refactored npm search to use the api
Converted all npm install, search, remove, upgrade to use npm api