Update WSGI app creation to be compatible with Django 1.7
Update WSGI app creation to be compatible with Django 1.7

This resolves the following error when trying to run Horizon:

AppRegistryNotReady: The translation infrastructure cannot be
initialized before the apps registry is ready. Check that you don't
make non-lazy gettext calls at import time.

and is backwards-compatible with our currently supported versions (back
to 1.4).

Change-Id: I1e59f2bf6633a34cfe9230aa028f345e5fa70f94
Closes-Bug: #1382023

bac/horizon,takeshineshiro/horizon,noironetworks/horizon,maestro-hybrid-cloud/horizon,davidcusatis/horizon,openstack/horizon,ChameleonCloud/horizon,icloudrnd/automation_tools,vladryk/horizon,redhat-openstack/horizon,agileblaze/OpenStackTwoFactorAuthentication,Hodorable/0602,NeCTAR-RC/horizon,izadorozhna/dashboard_integration_tests,gerrive/horizon,VaneCloud/horizon,redhat-openstack/horizon,django-leonardo/horizon,idjaw/horizon,yjxtogo/horizon,openstack/horizon,yjxtogo/horizon,noironetworks/horizon,openstack/horizon,FNST-OpenStack/horizon,vladryk/horizon,gerrive/horizon,newrocknj/horizon,mdavid/horizon,Tesora/tesora-horizon,redhat-cip/horizon,watonyweng/horizon,eayunstack/horizon,Hodorable/0602,luhanhan/horizon,Mirantis/mos-horizon,Dark-Hacker/horizon,tsufiev/horizon,RudoCris/horizon,maestro-hybrid-cloud/horizon,xme1226/horizon,tqtran7/horizon,kfox1111/horizon,henaras/horizon,watonyweng/horizon,doug-fish/horizon,mrunge/openstack_horizon,mrunge/horizon_lib,saydulk/horizon,newrocknj/horizon,VaneCloud/horizon,coreycb/horizon,promptworks/horizon,BiznetGIO/horizon,luhanhan/horizon,CiscoSystems/avos,luhanhan/horizon,pranavtendolkr/horizon,tqtran7/horizon,CiscoSystems/avos,django-leonardo/horizon,mandeepdhami/horizon,dan1/horizon-x509,wangxiangyu/horizon,CiscoSystems/horizon,davidcusatis/horizon,redhat-cip/horizon,watonyweng/horizon,sandvine/horizon,philoniare/horizon,xinwu/horizon,dan1/horizon-proto,RudoCris/horizon,CiscoSystems/horizon,icloudrnd/automation_tools,noironetworks/horizon,karthik-suresh/horizon,nvoron23/avos,tqtran7/horizon,redhat-cip/horizon,saydulk/horizon,eayunstack/horizon,bigswitch/horizon,endorphinl/horizon,django-leonardo/horizon,wangxiangyu/horizon,damien-dg/horizon,mdavid/horizon,yeming233/horizon,yjxtogo/horizon,kfox1111/horizon,saydulk/horizon,tsufiev/horizon,Dark-Hacker/horizon,vladryk/horizon,VaneCloud/horizon,wolverineav/horizon,maestro-hybrid-cloud/horizon,damien-dg/horizon,Solinea/horizon,redhat-openstack/horizon,anthonydillon/horizon,Mirantis/mos-horizon,davidcusatis/horizon,RudoCris/horizon,watonyweng/horizon,pranavtendolkr/horizon,newrocknj/horizon,django-leonardo/horizon,Daniex/horizon,dan1/horizon-x509,kfox1111/horizon,NCI-Cloud/horizon,luhanhan/horizon,NeCTAR-RC/horizon,NCI-Cloud/horizon,Daniex/horizon,endorphinl/horizon,j4/horizon,xme1226/horizon,ging/horizon,NCI-Cloud/horizon,sandvine/horizon,coreycb/horizon,Tesora/tesora-horizon,orbitfp7/horizon,Tesora/tesora-horizon,yjxtogo/horizon,sandvine/horizon,orbitfp7/horizon,liyitest/rr,Solinea/horizon,yeming233/horizon,philoniare/horizon,ging/horizon,RudoCris/horizon,xinwu/horizon,newrocknj/horizon,bac/horizon,wangxiangyu/horizon,tsufiev/horizon,Dark-Hacker/horizon,bigswitch/horizon,ChameleonCloud/horizon,dan1/horizon-x509,liyitest/rr,promptworks/horizon,mrunge/horizon_lib,wangxiangyu/horizon,henaras/horizon,bigswitch/horizon,karthik-suresh/horizon,mandeepdhami/horizon,xinwu/horizon,NeCTAR-RC/horizon,endorphinl/horizon-fork,doug-fish/horizon,redhat-cip/horizon,idjaw/horizon,Hodorable/0602,karthik-suresh/horizon,BiznetGIO/horizon,wolverineav/horizon,noironetworks/horizon,endorphinl/horizon-fork,anthonydillon/horizon,FNST-OpenStack/horizon,mdavid/horizon,icloudrnd/automation_tools,dan1/horizon-proto,tellesnobrega/horizon,vladryk/horizon,doug-fish/horizon,NeCTAR-RC/horizon,bac/horizon,j4/horizon,blueboxgroup/horizon,nvoron23/avos,Tesora/tesora-horizon,agileblaze/OpenStackTwoFactorAuthentication,kfox1111/horizon,Daniex/horizon,dan1/horizon-proto,nvoron23/avos,tellesnobrega/horizon,dan1/horizon-x509,endorphinl/horizon,takeshineshiro/horizon,pranavtendolkr/horizon,tqtran7/horizon,Solinea/horizon,orbitfp7/horizon,bigswitch/horizon,Hodorable/0602,mrunge/openstack_horizon,NCI-Cloud/horizon,takeshineshiro/horizon,ChameleonCloud/horizon,agileblaze/OpenStackTwoFactorAuthentication,VaneCloud/horizon,ging/horizon,orbitfp7/horizon,openstack/horizon,bac/horizon,Mirantis/mos-horizon,eayunstack/horizon,CiscoSystems/avos,maestro-hybrid-cloud/horizon,dan1/horizon-proto,FNST-OpenStack/horizon,saydulk/horizon,Daniex/horizon,CiscoSystems/horizon,henaras/horizon,mdavid/horizon,davidcusatis/horizon,blueboxgroup/horizon,henaras/horizon,agileblaze/OpenStackTwoFactorAuthentication,liyitest/rr,coreycb/horizon,tellesnobrega/horizon,philoniare/horizon,icloudrnd/automation_tools,takeshineshiro/horizon,doug-fish/horizon,philoniare/horizon,gerrive/horizon,liyitest/rr,pranavtendolkr/horizon,sandvine/horizon,coreycb/horizon,damien-dg/horizon,xme1226/horizon,blueboxgroup/horizon,xinwu/horizon,Metaswitch/horizon,mrunge/horizon_lib,j4/horizon,CiscoSystems/horizon,Mirantis/mos-horizon,Dark-Hacker/horizon,blueboxgroup/horizon,idjaw/horizon,izadorozhna/dashboard_integration_tests,mrunge/openstack_horizon,promptworks/horizon,promptworks/horizon,tsufiev/horizon,Metaswitch/horizon,BiznetGIO/horizon,karthik-suresh/horizon,tellesnobrega/horizon,FNST-OpenStack/horizon,endorphinl/horizon-fork,yeming233/horizon,endorphinl/horizon-fork,anthonydillon/horizon,Metaswitch/horizon,j4/horizon,Solinea/horizon,gerrive/horizon,redhat-openstack/horizon,endorphinl/horizon,mandeepdhami/horizon,nvoron23/avos,yeming233/horizon,ChameleonCloud/horizon,ging/horizon,wolverineav/horizon,damien-dg/horizon,Metaswitch/horizon,CiscoSystems/avos,wolverineav/horizon,BiznetGIO/horizon,mandeepdhami/horizon,idjaw/horizon,anthonydillon/horizon