Adding URL::base() to the generated URL so that applications that aren't in the web root or have customized application.url should work, closes #9