Start implementing update-index

* Better stepping stone towards git add.
* Throw if passed path does not exist.