Create library kms-core

Change-Id: I1b8430ea9ddbaacff0e5cb679cdd1b8c58f1bbdc