Implement save and delete record methods

I've implemented both a save and delete record method. 

The save method delegates to either a create (if the record is new) or update method to write the changes. 

The record.delete! method simply calls ctdbDeleteRecord on the provided record.