Moved header constants for streaming into CMF
Adjusted AMPere to work with API changes in CMF. Added EndOfStream class to cleanly indicate when a stream has been closed.