refactoring: move process event implementation to the platform module in infrastructure.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>