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.