Fixed the redirect stuff somewhat, and also added some template tags for westis.
This version may not work properly under the 0.10.x series of cmsms due to changes in the redirect code. It is recommended that you use the latest 0.11.x version of cmsms.