Automatically adding the URL protocol

This adds the protocol automatically if necessary when the user stops typing or moves to the next field.

Related to #666