Adding Tracking Cookies To Lightweight Plugin

Changes required to track cookies in access logs
Rather than String concatenation, it would be better to use the existing StringBuilder buf.