Refactored host core and added plugin service injection