Fix #11, fix #19: Add outstanding notificaiton list

Also fixes some bugs related to off-by-one indexes and not returning promises.