gitweb: Add generic git_object subroutine to display object of any type