Support dates defined in R via as.Date()

by converting them into POSIXct.

/cc @xsaintmleux 

Addresses https://github.com/ropensci/plotly/issues/15