Added main loop and basic plumbing.

I've added the "main loop" relying on an enumerator which transforms
the strings to actions and emits them to the iteratee. There is a
credit iteratee, but it's quite dummy yet.