refspec: add direction accessor
remote: add resfpec list accessors

Bring back a way of acessing the git_refspec* from a remote.

Closes #1514
remote: fix a leak when dwim'ing refspecs
Merge pull request #1522 from arrbee/repo-open-with-no-config

Catch issue in config set with no config file
Merge pull request #1520 from carlosmn/nth-refspec

Add refspec list accessors
Merge pull request #1518 from arrbee/export-oid-comparison

Remove most inlines from the public API
object: Explicitly define helper API methods for all obj types
object: haha
Reorganize diff code into functions

In preparation for more changes to the internal diff logic, it
seemed wise to split the very large git_diff__from_iterators into
separate functions that handle the four main cases (unmatched old
item, unmatched new item, unmatched new directory, and matched
old and new items).  Hopefully this will keep the logic easier to
follow even as more cases have to be added to this code.
Update diff handling of untracked directories

When diff encounters an untracked directory, there was a shortcut
that it took which is not compatible with core git.  This makes
the default behavior no longer take that shortcut and instead look
inside the untracked directory to see if there are any untracked
files within it.  If there are not, then the directory is treated
as an ignore directory instead of an untracked directory.  This
has implications for the git_status APIs.
More tests for diff untracked directories

This includes more tests for various scenarios when diff includes
an untracked directory in the workdir with contents either ignored
or not.
Update comment for clarity
Fix some formatting inconsistency