There are many ways to do this using photoshop. You could use the path tools and outline the person and then make a channel mask. You could also use the magic want tool. This won't give you a clean cutout though. You could also use channel masks(do a search on google)

The layering is just a matter of separating the images and placing them on separate layers.

hope this