Adding client and server heartbeat monitoring for streams.

yes @roihq please send this change in a different PR if you want.