MDL-41608 themes: notification() fixes, new API for notifications