The command dispatching infrastructure is done.

I'm still not sure how confident I feel with Haskell's IO Exceptions.