ENH: Change open and close to midnight if using daily input data.
MAINT: Factor out column conversion in HistoryContainer.

We can't be sure that security identifiers can be converted
to int. In fact, most of the times they are strings. This
adds an identity function that can be overwritten if such
a conversion is necessary (as on Quantopian).
TST: Add unittest for daily history with midnight dt.