Use in() and out() in leo().

This commit creates a simple loop to operate on every bit of data from
in() and constructs a string of bits to provide to out(). This
implementation is mostly for debugging and further development.