Palladium-Catalyzed Carbon-Nitrogen and Carbon-Carbon Bond-Forming Reactions: Progress, Applications and Mechanistic Studies