Add search functionality

This adds the ability to search for hosts and metrics.