Calculate least transaction id.

I'm going to say that I have a rudimentary put at this point. The
transaction stuff isn't working, but I'd like to build it that one
GitHub Issue at a time, not in one monster commit.

Closes #13.