Chemistry at surfaces: from ab initio structures to quantum dynamics