cassandra: add a TABLE class attribute to row classes, and use it to deduplicate prepared statements logic.
It will also be used in a future commit to generate 'select' prepared statements.
Depends on !507 (closed).
Migrated from D3760 (view on Phabricator)