On The Foundations Of Continuum Mechanics And Its Application To Beam Theories