Top level class of controller for receiving search type from jsp and
returning results as JSON.