Move necessary core files from lib submodule and put in new core directory