new API

implemented the user.save() for the new API and the list of actions to maintain user actions and send them to the server upon syncing.