Not for this PR, but can we simplify the restmail API via some abstractions? Create an instances of restmail, set its EMAIL_SERVER_ROOT, and have an accessor function `restmail.getLatest(user)` that only returns one email?