Create and pre-populate a table with data.

Adds ability to pass a list of key,value objects to that will create a table using the keys as fields and pre-populate the records with the values.

(Fixed, removed unnecessary jQuery.each).