Key should make sure new privkey is less than N

...this involves adding a Curve class, and significant refactoring to make this
possible in a clean way.