Superconducting Proximity Effect and Majorana Fermions at the Surface of a Topological Insulator