Reduce indentation in ServerConnection.loader_received()
Move loader_recieved handling into separate functions