Refactoring of the getChatbotResponse function
Define a new section for the chatbot specific code
Add anonymous function wrapper
Keep track of compatible versions of the app

This allows us to change the format of the knowledge base substantially
and automatically reset the knowledge base when it is incompatible with
our new algorithms.
Minor style fixes
Fix for keeping track of compatible app versions