changed temporal extent fields to DateTime
fixed temporal extent formatting in the xml template
fixed some pep8 errors reported by flake8
added datetime support for temporal extent fields in layers, maps and documents
Merge branch 'ricardogsilva-fix#1746'