refs part 1
refs abstraction beginnings
foreach
checkpoint
write
all abstracted
abstraction
sanity updates
refs
Merge branch 'development' of https://github.com/libgit2/libgit2 into development

Conflicts:
	src/reflog.c
oops, out of order decl
cleanup last todo
malloc/calloc/free
refactor to add refdb