Implement bracketed paste mode

A fix for #427.

Allow bracketed paste mode-setting control sequences to be passed to the outer terminal.