The dialog box is now be centered properly when it contains images with an unknown height and width.

The dialog will also show a scrollbar if it is higher than the window.
Reverted to the file in GitHub repo and not one taken from the samples.
Added a check for all images being loaded
Corrected some typos and some errors reported by JSLint
Fixed order of setTimeout and areAllLoaded()
Made the dialog show immediately and then reposition on every image loaded
Fixed an issue with the width style being cleared from the dialog.
Merge branch 'master' of https://github.com/TommiGustafsson/Durandal into Version-2.0.1
Fix Issue #292: Correctly position dialog in more scnenarios