Room-Temperature Salt Template Synthesis of Nitrogen-Doped 3D Porous Carbon for Fast Metal-Ion Storage.