Customhttplog improvements

Added support for %{cookiename}C
Added support for the definition of maximun length. ie: %[50]{user-agent}i
Some small bugfixes
Added the modifications suggested by Charles Smutz