Cargoified the package, finally.
language changes: fixed most warnings, switches to new slicing syntax.