change api to allow miltiple sessions in one connection
add new example (test_record.c)
add new example (test_record.c)