Move unearned badge job into a class and add basic tests
Add job class method ::run that instantiates a job and runs it
Merge branch 'refactor'