Added support for QoS 1 in a tree-based topology.

Closes #13.