Functional Carbon Materials From Ionic Liquid Precursors