Added master_key ref and ht_table_stats struct.
Added a very bad(deterministic) keygen function. Better ones coming.