Fix race condition in combination with nodePush

If a nodePush notification comes in *after* PHP fetched the new messages
from database, but before the server reply is received it may delay the
arrival of the new message up to a minute (where the automated timer kicks
in)
Fix permission check in WhereCommand
Bump version number
Merge remote-tracking branch 'origin/3.0.x' into 3.0.x