Rewritten GraphModel._for() into a general For class in util.dart.
Ready to deploy as JavaScript, fixed JS issues, style-up.