Have ca_table_insert row return offset of inserted row

This helps with generating indexes on the fly, and keeping back pointers in
ARIES logs.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>