Changed badge handling
Register defaults from settings bundle

Taken from http://ijure.org/wp/archives/179