Adds basic handler for ensuring only json requests are responded to