getLatestUndeletedPid will return string #1884
fix tag counts

if a tag is removed from a topic, update number of topics in that tag
fixed tags page search
final fix for #1884

fix mongo functions so they return correct data if duplicate keys are
passed. getObjects(['post:1', 'post:1'], callback) was only returning
one object.