Battery Ventures announced Tuesday that it has acquired GrammaTech’s software-as-a-service unit and established a new company, CodeSecure Inc., that will focus on providing cybersecurity software to clients in the private sector.