Nice write-up on how to go about do this, but…my 2 cents, you can buy a pre-made board from china for 2-3 dollars. ANd the parts here are most likely going to cost just as much if not more.
http://www.instructables.com/id/12VDC220VAC-relay-module-for-Arduino-homemade/