move model, add crypt

Model was moved in py-code. Added crypt for data.json. For crypt used
pycrypto witg AES method.
simplified interface