master: Updated shared endpoint handler to normalize the input between commands and webhooks.