Adding dir and lang to allow for easier bidirectional support
Merge pull request #5634 from chadhietala/add-dir-lang

Adding dir & lang attribute bindings to allow for easier bidirectional support
Refactors `propertiesFromHTMLOptions` method