ReactiveX/RxJava — pull request #1760 by akarnokd (2014-10-15 15:19:44+00:00)
Title: ReplaySubject backpressure first try

Added backpressure support to the unbounded ReplaySubject case. Since it buffers values anyway, this is just an attempt to honor the Subscriber's request amount. In addition, I removed some unnecessary complications from SubjectObserver and ReplayState. One notable effect is that the onCompleted event isn't immediately delivered (if requested < Long.MAX_VALUE) but only when the client Subscriber actually ```request()``` for the next value.

In addition, the bounded replay had an unfortunate bug if the list got completely evicted before a terminal event and Subscribers had a broken chain not ending in the tail terminal event. This was uncovered by the removal of ```caughtUp``` flag.