Bug fixes and IP tracking fix

Support for CloudFlare's 'mod_cloudflare.c'
Fixed cookies. Cannot edit to login as different user.
Fixes BBCode.