Fix commit viewer. Add aplication destroy. Fix profiles. Move

indexes for commits.