Electronic systems on the border of ferromagnetic instability: Theory of magnetism in Laves phase RE-Co alloys and compounds