Track search terms and provide suggestions

Added functionality to track searches, and to provide suggestions for new searches that will be triggered.