Self-assembled monolayers based spintronics: from ferromagnetic surface functionalization to spin-dependent transport