Don't import a cert until the DB has been created.

Also prevent creation of dependency cycle.
Create event exchange for Candlepin to use.