notifications: rework notification API

 * Note: DBus API compatibility has been dropped

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Fix compiling warning.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>