django: Use valid identifiers for app labels
Django application label must be a valid Python identifiers and thus
must not contain dot characters.
Having invalid identifiers will make database data importing from JSON
fails otherwise.
Related django issue: https://code.djangoproject.com/ticket/32285
Related to T2945