overdue: util: add missing equals() methods in notification keys

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
overdue: limit the number of notifications

Each time overdue verifies the state of a bundle, it will re-insert a
future notification to progress the bundle through the various ODE
phases.
Since it will check each time it runs whether to call itself back, we
should have at most one notification per bundle id at any given time.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
Merge branch 'master' into overdue-notifications-fix
overdue: revisit notification queue queries

Go with account record id to avoid querying on the raw json.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
beatrix: fix test failure

Make sure the set the time in UTC.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
overdue: rename helper method in TestDefaultOverdueCheckPoster

@sbrossie pointed out the method does more than just verifying the
queue content.

Reported-by: stephane brossier <stephane@ning.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
util: be more narrow when looking for future notifications

We are likely to be interested in the available ones only.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>