#1494|Modifying the facility search API to support pagination and get extra data. Removing unused functions.