API format now specified in url as .csv, .xml etc; fixed csv response for historical queries
datepicker external added and implemented on tables