tables: making a backend API for the table builder
fixes: improvements to wrapping and field generation.