Part 3 of elliptic curve refactoring: WebEC class