Only compiled some regexes used in HTTP parsing once

Currently they are parsed and compiled once per-HTTP request, which is
unnescary computation and makes stuff slower than it could be.
Merge pull request #603 from alex/compile-re-once

Only compiled some regexes used in HTTP parsing once