Multi-terminal Josephson circuits