Fixes all over the place

Fixes for redirect, render_other and how before-variables get passed to templates