created service-core submodule and moved code into it