Factor out released languages business logic

Also adds tests for missing language and missing profile cases in the profile views