Various sorting pleasantry
Support stupid mysql 5.5, fix copying published badges
Fix crash
Fix view page, fix using template with images
Merge remote-tracking branch 'upstream/master' into sort-tweaks

Conflicts:
	app/templates/badge/home.html
Merge pull request #192 from christensenep/sort-tweaks

Punchlist stuff, fixing some broken things