Handle multiline messages

Addresses #30 
@mrdavidlaing, I can try this if you think it's really useful.