The Theory and Applications of Electrochemistry in Halidometallate Anion and Polyhalogen Monoanion Based Ionic Liquids