Add status query for staged files

This allows clients to determine whether a path is in git's index.