Updates to rewrite handling

NOTE: this reverses 4670fed16d463c665b21a39e5fba68d194023373. There is
no longer a special function for archive links. Instead all
customPageURL() handling will check if the script is one of the
"rewriteable" ones and act accordingly.

Users can now implement their own unique "rewriting" for custom script
pages. However, all parameters must be passed with a query string as the
rewrite handling will simply check that the token is the only item on
the line.