Fixed exception-causing bits in the server, updated .gitignores