improving context; reorganizing templates; removing trailing slashes from some urls