The physics of dense hadronic matter and compact stars