Expose path argument in commits API endpoint.

The `commits` endpoint currently doesn't accept a `path` argument, even though the internal `Repository::commits` method does. Instead, the API endpoint always passes `nil` to `Repository::commits`. This MR exposes the `path` parameter and updates the inline documentation accordingly.