JavaScript pub/sub library supporting some advanced subscription features, plus message capture and replay