Implemented a more liberal version of parse_url().
Reimplemented field control in a sane way.