Manage properties per table

Subject to the global switch. Also per table expires function.
Merge branch 'options-by-table'