massively improved connection and rendering code, bug fixes

now properly handles all simple junctions (no cube-corners!)