Add credential support.
Add online clone tests.

Roughly based on the libgit2 online test setup.
Credentials should take an options hash.
Merge pull request #292 from libgit2/arthur/credentials

Add credentials support