Add support for DateTime attributes

Expects DateTime objects to be encoded with ISO-8601 standard
see http://www.w3.org/TR/NOTE-datetime for more inforamtion.

Also converts from Date and Time objects to DateTime.