Added ability for pagination in subfolder

I have added the ability for pagination to be performed on a subfolder (e.g. /blog), with all the posts held in this subfolder.

This allows a landing page to be used, and keeps the URL structure clean.

I have added a new config variable to toggle this behaviour, and amended the $url manipulation to allow for it.