WIP move background activity state details -> hidden
WIP some refactoring, documenting & cleaning up warnings