Drop M2Crypto dependency by using C module

The motivation (besides it being nice not to depend on anything for the
basic features) was preparation to support Python3, since M2Crypto does
not.