Splited Code to create addon ircrpyt-key-ex

Also changed code and added function from new ircrypt version.

WARNING! Code not tested yet.

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>