add ipc_pipe_empty_rx.
move rx/tx handler into ipc_serial_handle_rx() and ipc_serial_handle_tx().