Dumb encoder

This is a very bare-bones pickle encoder.  It doesn't make any attempt to be smart about the encoded values.  I still have some fixes and tests to push, but I thought I would make this pull request so you can see what is being worked on.