Accepts POST requests with a JSON message body, matches the message against a set of predefined replies, logs everything to console, and returns a response.