Magnetism of Individual Adatoms and of Epitaxial Monolayers