closes #2521
made breadcrumbs regular function

less db calls as well
missing err check
closes #2522
dont allow move to same topic
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.io1.x