Added controller that handles requests for /favorites, /friends, /greeting, and /search with corresponding actions