Added 'Server common exchange module'; minor refactoring