Dissertation: A study of frames in twisted shift-invariant spaces on $R^{2n}$ and shit-invariant spaces on the Heisenberg group