Server-side trustee generation: take the private key x modulo q

The client-side version (in JavaScript) already does it. The group
order is q, which is a factor of (p-1). It doesn't make much sense to
take x modulo p.
In ZK proofs, responses should be taken modulo q
Merge pull request #39 from glondu/modulo-fixes

Fixes in modular arithmetic