protocol: use changegroupsubset() if possible (
issue1389)
Due to the fix to the pull race, to avoid sending unnecessary
changesets, use changegroupsubset if possible.
This will increase the load on the server.
email: add References field in the header
This hopefully helps clients get the threading right.