Ecma datamodel

Final state of the test module javascript:
https://gist.github.com/feyzo/b25e9d0730477d2fbe15

Got the idea from here:
http://www.w3.org/TR/xmlschema-1/#d0e1654

What do you think?

Closes #175 
Closes #178
Closes #307 

Closing 1 erroring 1 failing tests.
Passing total of 164 tests, 61 of those from w3c.
Leaving 11 erroring and 92 failing tests.
Can you explain this change?