Use libostree to start doing simple operations

Instead of forking out to a subprocess.