Added: Split of server and router codes into separate files