Bug 1020696, part 1: Use promises in compose tests, r=irving.
Bug 1020696, part 2: Add header emission compose tests, r=irving, a=jcranmer