make a lib of ircd, add goircd command using lib; fix pre-commit.sh; fix go vet complaints about using locks as values