updated analytics

accumulate pageviews, uniquevisitors and uniqueIps locally and update db
every 10 mins instead of on every page view
fix more relative path redirects
another relative_path fix
store teaserPid in topic

-update teaser pid as necessary in addPostToTopic, removePostFromTopic,
post purge
-removed 20x db calls from getTeasers
-fixed scroll to post in sub folder install
-upgrade script to update topics with teaserPid
Merge remote-tracking branch 'origin/master' into socket.io-0.9.x
removed extra comma
removed extra comma
remvoed lowered pingTimeout
merge