Refactored start_server script, setup logging