Let the core part of the library only handle Frames.

Previously the input was Frames and output ByteStrings.
Now it's frames both in and out.