cleaned up import statements
added a check to make sure the URL actually exists (points to a webserver) in the /generate/ function
added functionality to use Redu.se with 'mailto:foo@bar.com' URLs