adding global router object for inter-worker communication
refactoring server initialization