Move phpdbg_print and helper functions to phpdbg_out.*