Added a badgeView for on/off or extra info of a setting type.

Some bugs fixed, add badgeView, some refactored, update build.gradle to
new version etc.