Add support for custom category and tag bases

I know the intention of this plugin isn't really to use the rewrite tests that come with it, but seeing as they are there we may as well improve the out-of-the-box compatibility.

This change adds support for a custom category and tag base which can be set from the Settings -> Permalinks screen.