Add basic code for notifier preferences

Basic DB handling, storage and fetching with caching for now
Make the notifier class abstract and implement a few methods for ease