Improved the badge urls for github projects

Using the SVG versions is better than the old PNG versions
Fixed specs by mocking the github api properly
Merge pull request #9 from stof/patch-3

Improved the badge urls for github projects