rename loose refs functions
refactor packed refs to separate tags/branchs/remote in a easier to address format.
add module sections
expose proper functions to handle branches/tags/head