read appkey at runtime

add functionality to read appkey at runtime
so it could be published as binary and there is no need to compile it