Hook up cert sorter's is_registered check.

Requires ConsumerIdentity, which led to a circular dependency, so this
is now moved into it's own module.

Tests updated to patch this as required so all product status doesn't
show up as unknown.