Added permanent document movement headers

Normally when we call QApplication::Redirect(), it does a HTTP 302 (Found) redirect which is a kind of temporary redirect. However, sometimes we might need to do a 301 (Moved Permanently) redirect. 
This might help in SEO as well as caching on the browser side.
The pull request contains the required changes for the same.