Support true modal (not dismissed by esc or click outside)

This update adds an extra parameter to the error, wait, notify, and confirm methods called "static" if static is omitted it functions as it did before. However, if static is set to true the background mode is set to static and keyboard is disabled. This allows users to easily create truly modal dialogs (where the user has to click the buttons in the window). This is especially useful for the wait dialog as currently the user can just hit escape or click the background to dismiss it and this is often not the behavior that is needed.