Reworked URL code structure and redirect support

- new htaccess (with trailing slash redirect)
- new URL constant names
- do_hook() now relies on $hooks being object not array
- new sys_redirect() with custom response code support
- create_url() converts $url->query to array, ready for output