Implemented email APi endpoint.  Close #25.