Added the functionality to send events to platform asynchronously
- refactored the PlatformPersister class.