Create API builder

A few of the API objects (`Command` and its sub-object, `TransactionManager`) required that they have access to the Scribe instance. Previously I was just passing in the instance when I construct those objects. This tidies things up a little bit by constructing the object constructors so they have access to the instance via closure.