Major refactoring of the code!

Moved functions and variables to parent object so that they could be
controlled after the initial request. New method is to call
$.timeoutDialog(your options); You can also call $.timeoutDialog(); to
reset the timeout.
Improved conditional tests