portal_lib, SceneManager & main clean commit