add inbox api endpoint to receive email

doesn't store the email yet
store email received at /inbox endpoint

code should probably be moved to its own file at some point, but not sure yet where