There's a bit of a discrepancy here, that directory will list both rooms and spaces. I also removed duplicated titles where applicable.
Remove any dependencies on App from the spaces module. This requires moving some dialogs either to spaces, or libneochat if they're used more generically.