Move the writing of the no cache header to inside playlist type event.

Let the client determine if it should cache or not unless we are
publishing a live stream.
Merge branch 'allow-cache-no' of https://github.com/jamie-stackhouse/m3u8 into draft