[WO-399] Handle reply-to, in-reply-to and references headers

  * Use address from the `reply-to` header for replying
  * Use and update `references` header when replying or forwarding
  * Set `in-reply-to` header when replying