nsqd: empty should clear inflight and deferred

* refactor empty/flush code
Merge pull request #144 from mreiferson/empty_144

nsqd: empty queue does not empty deferred/inflight