virttest.utils_misc: Add some code for strip_console_codes

Add some ESC code in the default value of console_codes to cover
more console escape and control sequences from console output.
Also add custom_codes to this function to cover more ESC code
if the test cases needed.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #1788 from ypu/strip_console_codes

virttest.utils_misc: Add some code for strip_console_codes