Use absolute URLs in all of the emails.

Closes #22. Probably.
Move stuff from util into lib.

They're both doing the same thing, so lets just have one of them.