Move 'dir' attribute from HTMLDocument to Document.

Move 'dir' attribute from HTMLDocument to Document to comply with the
specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#dom-document-dir

This behavior is consistent with Firefox 28 and IE11.

BUG=362955
TEST=fast/dom/dir-non-html-document.html

Review URL: https://codereview.chromium.org/235933008

git-svn-id: svn://svn.chromium.org/blink/trunk@171529 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move 'scripts' attribute form HTMLDocument to Document

Move 'scripts' attribute form HTMLDocument to Document to comply with the
specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-scripts

This behavior is consistent with IE11. However, Firefox 28 still exposes
'scripts' on HTMLDocument only.

BUG=362955
TEST=fast/dom/Document/scripts-non-html.html

Review URL: https://codereview.chromium.org/237183003

git-svn-id: svn://svn.chromium.org/blink/trunk@171530 bbb929c8-8fbe-4397-9dbb-9b2b20218538