store cats as slugs in ES to fix linux app installs (bug 876293)
refactor group checking, a la basta
For apps in PUBLIC_WAITING state, current_version should return PUBLIC versions as well (bug 895432)

Also, if the current_version of an app was published, publish that app as well
if it was in WAITING state.