This introduces the API flow. (DON'T MERGE, JUST REVIEW)

Having thought about this a bit over the weekend, I'd argue to the contrary: the email flow is the most basic mode of operation, with the least complex dependencies, so that should be the default. 

More generally, the idea of adding an environment variable to disable a feature seems counter-intuitive.