Update to status service to ping search service and metrics service

Update to status service to ping search service and metrics service for availability as well. Made minor refactoring too