Add options for initial dialog size and "persist" attribute
Unify line breaks
Correctly get icon of closed windows on Firefox 24.0a1