Uses server event request instead of callback
Moves configuration to a separate file
Replaces addListener by on