moving config and the loader into the api-kernel, updating some code in the validator

Signed-off-by: RJ garcia <rj@bighead.net>