cookie path rewrite support, with new rewriting syntax.

Adding support for cookie path rewriting, according to syntax discussed at pull request #32