Refactor cudadrv bindings to use cffi.