Added PersistenceAgent.as_midi().
Reimplemented play() in terms of persist().

The body of play() is now 8 lines long, including imports and asserts.
Merged master.