Refactor out most uses of gsub to help on memory use
Split off TableStyle object
Fix break when creating tables without styles/widths
Allow passing TableProperties object in so it can be reused