Add support for capturing to seqexes

Add -end to seqex protocol. Add (mostly nil) defaults to existing
seqexes.
Fix bugs in -end functions
Add new cap[turing] seqex and use it in se-matches

add capturing tests and update unit tests to support new return
values from se-matches.