A simple way to handle messages via modules wrapped in promises