Move git primitives to git.go for clarity

Signed-off-by: Solomon Hykes <solomon@docker.com>
Remove tests for deprecated annotations code

Signed-off-by: Solomon Hykes <solomon@docker.com>