Got framework redirects working and the beginnings of reimplementing the framework