added code for processing option config.rewrite_links_serverside

also added in a more fleshed-out verify_config_is_sane()
Merge pull request #177 from virgil/patch-6

added code for processing option config.rewrite_links_serverside