Fix app by domain

@czue @dannyroberts 
I realize I wrote this function, but it might be nice to add a doc string (in particular documenting that this only returns apps and not builds).