Shadow catcher material

How to use cycles shadow catcher in Blender - Artisticrender.com

Would be useful for Photomatching.