Sterile Neutrinos and Leptogenesis of Matter and Dark Matter