Notifications API and new sample code with live demo (closes #11)