Katy Gallagher resigns as Chief Minister, declares for Senate