implement notifications rest service and client-side handling