Update API names in corresponding to toxcore's changes
More method name changes.
Fix return value changes in coresspondence to toxcore.