A Theory of International Organizations in Public International Law