Split server code into two more managable files
Clean up code and improve error when library hub cannot be reached
Change one word