Ipmlement handshake prototype behind a feature flag

will be updated to a tagged version once ownership is transferred to mozilla.