refactor(kernel): move files that don't need to be in the kernel

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>