[core] Add console module support.