Added support for more flexible page naming

Added check for the `path` option containing a `%d`, if found this is replaced with the page number. Example: `path = '/blog/%d/index'` ends up as `'/blog/5/index.html'`, allowing `/blog/5/` as the URL).