Coolio had a lot of things in the works before his sudden passing last week -- including the fact he was about to headline his first ever Vegas residency this month ... TMZ has learned. Shortly before he died, Coolio was actually in talks with a…