Made server connections reusable. Added CLI to set ports and stop server.