Add web_api.EmailParser class for parsing emails

The EmailParser class is responsible for turning incoming text into a set
of meaningful fields, namely who the email is from, what the subject is,
and what the body is. Since not all messages are pure text, this turns out
to be non-trivial.