Implement save and delete record methods

Fix bug caused by inverted terinary

Add c method to delete record

Add save and update methods

Add tests for save functionality

Update query.init_object

Add get_field_as methods for a few data types

Add a get field number method to dry up a bit

Fix bug in rb_ct_record_get_field_as_number

Refactor a bit