The actual protocol spec (warning!  draft!  here be Nessie!)