Unify ecb/cbc crypto decode/encoders.  Lots of cleanup.