arduino: Simplify RPC mechanism / codes / structs

Instead of using separate RPC status codes and commands, combine the two
to make things simpler.  The protocol is also a little bit simpler (fewer
stages).
arduino: Make serial RAM access functions public

Also move resetRPCServer() to match function order in header.