cleanup
changes for kernel compile
slightly refactor PortalInternal initialization code
simplify tests/simple_manual