implemented Cmd.QUERY_LINK_SOURCES and Cmd.QUERY_LINK_TARGETS (closes #14)