A certificate with a generator is :auto

Unless it has responses newer than when the generator completed
then it defaults back to :self like a user submitted certificate
Merge pull request #935 from theodi/feature-automatically-awarded-verification-level

Show certificates as automatically awarded when generated via the api
Don’t default host setting to pow default

The app is guaranteed to be run under pow or to be named the same
Fix a copypaste error and cover with tests
Use other quotes instead of escaping

Just to make it a bit more readable.
Render generation result even if there is no user email
Use user model method
Use delegator instead of duplicating nil checks
Use boolean type instead of a string

  * JSON can encode true/false values as literals so no need to use strings
  * Lack of value will still count as false
  * "true" via counts as true so will still work,
  * "false" is still not #blank? so it would’ve behaved as true previously
No need to define `campaign` as nil

The assignment to `campaign` in the if block still creates the variable in local scope and it is defaulted to nil
Use ActiveRecord#increment!
Limit certificate campaigns to the creating user

If another user creates a campaign of the same name it shouldn’t
add to another users campaign
This method exists to assign ownership

It does all the required model changes in once place
Only create user if publisher has contact email

DataKitten can return a publisher object without an mbox field
If user creation fails fall back to api user
Make test domain name consistent with TestRequest
Move all api started certificate generation to queue

There was still too much work being done in the request to make
a certificate import feasible. This should speed up the queuing of
imports.
CanCan default caching of current_ability is broken

if it’s called too early (I think from logging in this case)
then it will cache the ability for nil instead of current_user
Fix up cucumber tests to match refactor
Redirect to completed dataset on import completion