add codec
Merge pull request #118 from twitter/feature/codec

Add Codec[T] type alias