rolehistory: whitespace and javadocs
move getContainerDiagnostics from AM to AppState to avoid leaking data structures