Code is on github.

I got my relay module from ICStation.com, but you can get them from Ebay too.