[lib/qb/console] Add support for history file

Signed-off-by: Anton D. Kachalov <mouse@yandex.ru>