Adding protocol field

This sketches out adding protocol.

npm test fails (but it failed for me before I added this patch).

Defaults to 'SMTP', not sure if that is right.
Not sure if extracting this should be conditional.