Fixed mismatched API calls and added callback support to all REST API calls.