Pull migration related files from #668
Store image data when we award.
Only use pull the necessary migration
Use Badge#getImageUrl in views.
Don't log image requests.

It will quickly get out of control and will add a lot of noise to the
logs.
Performance: Use indexOf instead of regex
Remove done todo.
Rearrange a little bit.
Add conmock test for badge.image controller.
Merge pull request #728 from brianloveswords/726-use-image-data

Use image data from database instead of relying on local files.

[closes #726]