Improve handling of nested quotes

The archive quoter now maintains the structure of nested quotes
properly - this is achieved by splitting each generated quote into
a head & tail, and then wrapping these around any existing quotes.