#4, part 1: Rewriting internal hrefs
#4, part 2: Internal links now work
#4, part 3: Revokation of generated URLs