added code for processing option config.rewrite_links_serverside

also added in a more fleshed-out verify_config_is_sane()