Added an IV to AES encryption scheme.

This was missing from a previous version and did not cause trouble. But some recent versions of PyCrypto requires an IV to work properly, so the IV
is derivated from the encryption key through sha512 hash algorithm.