Console API

Not finished (without tests) version of Console API.
Helpful for review first part - Injector API.