Change required input format.

Headers is now an array of strings or objects.

Rows can now either be an array of objects with keys also specified in the headers or
and array of arrays.