Move tokenisation code to baps3-protocol.rs.

Woo, modularity!