Console service

i just finish the Console service backend, please review the code before merging.