Option to exit program based on string match.

This adds an option to grabserial to exit when a regular pattern (specified with -q or --quitpat) matches mid-line on the output. Can be used as an alternative to --endtime when one only wants to capture up to some known point in the serial port output.

Assuming it makes sense to increment the minor version number.