Set up Muffin.Document and Muffin.OTAdapter.