Created a spec that reasonably covers the creation of search_terms
Created an AJAX request to pass the search_term to the server

Sorted out the search_term controller

Added an appropriate route.

Tweaked the .update_or_create_search_term method