How to capture, save, and rebroadcast an infrared signal?
There is an IR library for arduino that is pretty good: Arduino-IRremote   

A guide on how to use it: A Multi-Protocol Infrared Remote Library for the Arduino 

It is capable of recording and replaying a lot of common remotes. The wiring is very easy, a simple device is described here: An Arduino universal remote: record and playback IR signals