'CommandCompletion' + preliminary implementation of 'HistoryManager'

Please take attention that there're also some changes referred to future 'HostoryManager'.