Unfoldings and Bifurcations of Quasi-Periodic Tori