refdb: Change write() to accept a flatten reference
refdb: Change delete() to accept a reference name
refs: Fix documentation
refs: Introduce git_reference_delete_byname()
Fix MSVC compilation warning