Split connection.c and connection_or.c into mainloop and "or" portions

These modules are logically split into generic code that belongs in the mainloop, and code that only applies to Tor. We should split them up.