create an encodings module to facilitate encoding sharing

For now, just bit packing