Implement document.lastModified (fixes #2972, #3127).
Merge pull request #3204 from Ms2ger/2972-3127-lastModified

Implement document.lastModified (fixes #2972, #3127); r=jdm+Manishearth