MOBILE-168 Initial notification support for testing

A set of commit that fixes also bugs needed to make the notification system work.