Fix NPE
Started to refactor prefstore
Furhter refactorings

  * splitting big classes into smaller units
  * centralising config around DataType
Nullable annotation
Fix diplay of notifications
Bump version