fix #1314 disable robot for Firefox 3.6
fix #1307 Dialog onClose callback

This fix adds the possibility to call a callback everytime the Dialog widget is closed.
fix #1315 preserve amabuild in URL on test.htm

If someone opens a page test.htm?amabuild=true and types the classpath, the amabuild param
is not preserved. This commit fixes that issue