Fix double directory for pages, better configuration handling

There seemed to be a bug where a `about/index.md` file would generate an entry in `sitemap.xml` like `http://example.com/about/about/`.

I also took the opportunity to tweak the configuration handling, with defaults that the user can override.

Cheers!