The Fontaine-Mazur conjecture in dimension two