Add NEEDS_REVISION support to DifferentialRevisionQuery

Reviewed by: epriestley

See: https://github.com/facebook/phabricator/pull/370