Multi-terminal Josephson junctions as topological matter