move loki to jf-common

Change-Id: If396f209f05915c4b1ec85a8eb64bfefae4e0cc9