Implement notifications logic as a zepto/jquery plugin.