Factory for building JavaScript Objects or creating records, usefull for setting up test data.