The Dynamics and Energetics of Matrix Assembly and Mineralization