added new BrowsCap library

(adjusted to hopefully still run on PHP 5.2)
some minor clean up fixes

don't make use of deprecated mysql function anymore
code cleanup
fixed bug in pChart rendering
log current visitors
log media views
updated PChart to a slightly newer fork

this is work I did a few years ago
pchart disable background transparency, fix direct output again
some first go at history function
history completed
regression fixes for PChart

these are fixes that were in our local copy but had not been pushed to
our upstream version of pChart. They are now upstream and have been
applied here.
added datepicker
removed debug statement
log groups
added user and group info
upped version