Store pending updates and apply them later.

Updates to the API should not be pushed immediately, so store them until
processUpdates() is called.
Change-Id: Iade90d61eeb7c2a4e89c9ca739b30fbe88733fea