Finished converting rest of mux tests to table tests

Separated the tests in to test functions depending on what they are
testing.

Moved some test-specific functiosn in to closures within the test
functions themselves.
Merge pull request #3 from kisielk/test

Finished converting rest of mux tests to table tests
match ipv6 addresses in host: if first character of host is '[' try to parse as ipv6
add tests for ipv6 and ipv4 addresses
make ip6 a module-level variable to compile the regexp only once, use Regexp.FindString to extract the address
Test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW
Now the real test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW
Update mux.go

unnecessary comma
Merge pull request #9 from golanger/master

Remove unnecessary comma
Merge remote-tracking branch 'soul9/master'
Replace regexp match with string indexing for ip6 addresses.