Move error and warning functions into input_path.
I'll rename it after merging with trunk. I'm just collecting all the input and output functions together.