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.
Merge pull request #3 from nicolas-fricke/add_date_time_support

Add support for DateTime attributes