Identified!
1st image: Vacuum line goes to secondary air injection on 2003-4s. Probably goes to the black cylinder thingy that captures the vacuum. If you don't have SAI, I think it should be plugged closed - probably would make the engine run rougher and throw CEL codes when open. It is a nice way of testing the engine vacuum though.
2nd image: Throttle body heater plate coolant lines. Left one goes to a hole about 14 inches to the left at the top of the engine. Right one goes to the coolant expansion tank.