Implemented core service and config handler

Light testing, seems mostly stable so far