Fix #154: PostgreSQL-Errors when there weren't any messages, yet
Merge pull request #155 from 1UnitedPower/master

Fix #154: PostgreSQL-Errors when there weren't any messages, yet
format: formatting updates for easier readability
first implementation of badges
bundle update
avoid warnings about redefining constants

I know that I'm doing that…
FEAT: badges: updated data structures and created standard badges
FEAT: badges: implemented badge creation via Grunt

Grunt, in this case, is not the JS thingie ;-)
fix: avoid `count_messages` queries when rendering the thread list
FEAT: badges: updated rights helper to use badges instead of scores
FEAT: intergration of badges