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
Merge branch '3.0.x'
Merge branch '3.0.x'
Bump version number
Merge branch '3.0.x'