Implement page auto save and auto redirection after timeout.

This is the work from Team Fault.