Soham | BDSHR-84 | Basic auth for search APIs. Also refactored the code to
add all the web client code in one place.