adds beginning of rest client. already want to refactor to use requests and delete all smtp stuff