Embedded `pouch.collate` module

This module is no longer exposed by the Pouch instance and there is no
possibility of requiring it from another file in browser environment.
I added it manually to the source, which of course makes maintanance 2x
worse, but it seems to be the only valid option.