Minimum image convention -- cffi

This is a new version of the previous PR using CFFI for the wrapper. I realized I needed a few helper methods for cffi, so I made a new module in utils too. But this cuts out the cython step, and I think it's worth it.