Added save() method to object

Tries to intelligently pick whether to update() or insert().