Sodium-Oxygen And Magnesium Metal Electrochemistry For Energy Storage Applications