Improve the new console

* Added preliminary support for Android platform
* Split the code between platform-independent and platform-specific parts
* Added support for TAB key Red-specific completion