Move parts of datum_range_t into the real_table/ directory, and the rest into namespace ql.
Fix various style issues.
Rename the `get_all_sindex_id` parameter to `sindex`.