The Dirichlet Problem for Functions of Least Gradient