Implement bracketed paste mode

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