Fix extract_links handling of rooturls +/- trailing slash

* make sure behaviour matches original implementation as closely
  as possible by adding tests
Prepare v0.1-1