move loki to jf-common

Change-Id: I745af459f318dfc2bdb409cf36d5c246b21870cb