Don't assume the badge is a PNG

When awarding badges, replace the extension with SVG if the URL extension is SVG

Badge upload dialog accepts both PNG and SVGs

Fixed bug causing tests to fail
Added svg tests for badge-controller and badge-image-model
Merge pull request #1004 from WeAreFarmGeek/development

Accept SVG files as well as PNG