Foundations Of Categorified Representation Theory