Fix a json output error when there is a %22 in a url
Switch to PCRE regexes for a speedup of about 50%
Various profiling things
Use a sorted ring to store concurrency info (improves performance by 18%)
Walk back ring change as it's quite complex for such a small improvement; switch to using int's in the concurrency hash for a 11% improvement instead