implement handshake prototype

Can this be merged with the loginToken searching? Maybe do an include of the loginToken and do a where clause on that