Make get_object_by_id() work for most Django objects.
Make get_object_by_id() work for most Django objects.

Django object id is usually an int while lookup is an unicode string.
It works for Openstack but not other Django objects.

This patch makes other standard Django apps reusing Horizon easier.

Change-Id: I436c34e8b17340537f8d201001741d34c933764e

bac/horizon,django-leonardo/horizon,promptworks/horizon,anthonydillon/horizon,kaiweifan/horizon,davidcusatis/horizon,netscaler/horizon,nvoron23/avos,agileblaze/OpenStackTwoFactorAuthentication,dan1/horizon-x509,tqtran7/horizon,CiscoSystems/horizon,coreycb/horizon,noironetworks/horizon,Dark-Hacker/horizon,BiznetGIO/horizon,mandeepdhami/horizon,Tesora/tesora-horizon,redhat-openstack/horizon,Daniex/horizon,endorphinl/horizon,noironetworks/horizon,j4/horizon,Daniex/horizon,Daniex/horizon,openstack-ja/horizon,mrunge/horizon_lib,rdo-management/tuskar-ui,wangxiangyu/horizon,kaiweifan/horizon,Metaswitch/horizon,mdavid/horizon,tqtran7/horizon,karthik-suresh/horizon,kfox1111/horizon,Dark-Hacker/horizon,tellesnobrega/horizon,tellesnobrega/horizon,mandeepdhami/horizon,idjaw/horizon,vladryk/horizon,CiscoSystems/horizon,liyitest/rr,saydulk/horizon,promptworks/horizon,ChameleonCloud/horizon,Metaswitch/horizon,bac/horizon,Tesora/tesora-horizon,mrunge/openstack_horizon,VaneCloud/horizon,ChameleonCloud/horizon,RudoCris/horizon,gochist/horizon,VaneCloud/horizon,BiznetGIO/horizon,Hodorable/0602,CiscoSystems/avos,takeshineshiro/horizon,redhat-cip/horizon,takeshineshiro/horizon,openstack/horizon,blueboxgroup/horizon,philoniare/horizon,anthonydillon/horizon,henaras/horizon,maestro-hybrid-cloud/horizon,FNST-OpenStack/horizon,yeming233/horizon,nvoron23/avos,davidcusatis/horizon,endorphinl/horizon-fork,yanheven/console,gerrive/horizon,doug-fish/horizon,CiscoSystems/horizon,maestro-hybrid-cloud/horizon,Hodorable/0602,rdo-management/tuskar-ui,froyobin/horizon,coreycb/horizon,coreycb/horizon,pranavtendolkr/horizon,mandeepdhami/horizon,wolverineav/horizon,mrunge/horizon_lib,j4/horizon,xinwu/horizon,mrunge/horizon,maestro-hybrid-cloud/horizon,vladryk/horizon,NeCTAR-RC/horizon,endorphinl/horizon,FNST-OpenStack/horizon,django-leonardo/horizon,mrunge/horizon,Solinea/horizon,tsufiev/horizon,wolverineav/horizon,ikargis/horizon_fod,dan1/horizon-x509,zouyapeng/horizon,zouyapeng/horizon,eayunstack/horizon,ChameleonCloud/horizon,dan1/horizon-x509,bigswitch/horizon,citrix-openstack-build/horizon,flochaz/horizon,tellesnobrega/horizon,takeshineshiro/horizon,gerrive/horizon,idjaw/horizon,rdo-management/tuskar-ui,xme1226/horizon,zouyapeng/horizon,liyitest/rr,j4/horizon,mdavid/horizon,xinwu/horizon,citrix-openstack-build/horizon,xinwu/horizon,Metaswitch/horizon,dan1/horizon-proto,endorphinl/horizon-fork,openstack/horizon,openstack/horizon,newrocknj/horizon,VaneCloud/horizon,icloudrnd/automation_tools,tqtran7/horizon,RudoCris/horizon,mrunge/openstack_horizon,dan1/horizon-x509,tanglei528/horizon,tsufiev/horizon,Solinea/horizon,ikargis/horizon_fod,flochaz/horizon,sandvine/horizon,watonyweng/horizon,newrocknj/horizon,endorphinl/horizon-fork,wangxiangyu/horizon,RudoCris/horizon,CiscoSystems/avos,mrunge/horizon,gochist/horizon,vladryk/horizon,froyobin/horizon,Tesora/tesora-horizon,yjxtogo/horizon,promptworks/horizon,takeshineshiro/horizon,CiscoSystems/avos,promptworks/horizon,spring-week-topos/horizon-week,luhanhan/horizon,openstack-ja/horizon,karthik-suresh/horizon,pranavtendolkr/horizon,damien-dg/horizon,NCI-Cloud/horizon,gochist/horizon,NeCTAR-RC/horizon,ging/horizon,saydulk/horizon,aaronorosen/horizon-congress,Mirantis/mos-horizon,icloudrnd/automation_tools,liyitest/rr,xme1226/horizon,mdavid/horizon,endorphinl/horizon,yanheven/console,tsufiev/horizon,philoniare/horizon,eayunstack/horizon,FNST-OpenStack/horizon,davidcusatis/horizon,newrocknj/horizon,Mirantis/mos-horizon,philoniare/horizon,kfox1111/horizon,dan1/horizon-proto,mrunge/horizon_lib,BiznetGIO/horizon,openstack/horizon,tsufiev/horizon,sandvine/horizon,damien-dg/horizon,yeming233/horizon,zouyapeng/horizon,netscaler/horizon,gerrive/horizon,vladryk/horizon,davidcusatis/horizon,redhat-cip/horizon,watonyweng/horizon,JioCloud/horizon,bigswitch/horizon,izadorozhna/dashboard_integration_tests,redhat-cip/horizon,flochaz/horizon,VaneCloud/horizon,coreycb/horizon,noironetworks/horizon,karthik-suresh/horizon,ging/horizon,Hodorable/0602,maestro-hybrid-cloud/horizon,doug-fish/horizon,RudoCris/horizon,nvoron23/avos,j4/horizon,saydulk/horizon,gerrive/horizon,xinwu/horizon,idjaw/horizon,tellesnobrega/horizon,yeming233/horizon,redhat-cip/horizon,yjxtogo/horizon,mandeepdhami/horizon,ChameleonCloud/horizon,pranavtendolkr/horizon,anthonydillon/horizon,izadorozhna/dashboard_integration_tests,blueboxgroup/horizon,spring-week-topos/horizon-week,orbitfp7/horizon,NCI-Cloud/horizon,luhanhan/horizon,wolverineav/horizon,tuskar/tuskar-ui,rdo-management/tuskar-ui,agileblaze/OpenStackTwoFactorAuthentication,agileblaze/OpenStackTwoFactorAuthentication,FNST-OpenStack/horizon,citrix-openstack-build/horizon,dan1/horizon-proto,icloudrnd/automation_tools,liyitest/rr,bigswitch/horizon,mrunge/openstack_horizon,bac/horizon,r-icarus/openstack_microserver,NCI-Cloud/horizon,tanglei528/horizon,nvoron23/avos,openstack-ja/horizon,JioCloud/horizon,bac/horizon,froyobin/horizon,blueboxgroup/horizon,redhat-openstack/horizon,tuskar/tuskar-ui,sandvine/horizon,JioCloud/horizon,aaronorosen/horizon-congress,rickerc/horizon_audit,karthik-suresh/horizon,NeCTAR-RC/horizon,Mirantis/mos-horizon,tqtran7/horizon,ikargis/horizon_fod,bigswitch/horizon,wangxiangyu/horizon,dan1/horizon-proto,orbitfp7/horizon,mdavid/horizon,yjxtogo/horizon,django-leonardo/horizon,redhat-openstack/horizon,blueboxgroup/horizon,endorphinl/horizon,Dark-Hacker/horizon,tuskar/tuskar-ui,ging/horizon,henaras/horizon,BiznetGIO/horizon,NeCTAR-RC/horizon,pranavtendolkr/horizon,kfox1111/horizon,Daniex/horizon,idjaw/horizon,saydulk/horizon,philoniare/horizon,sandvine/horizon,Mirantis/mos-horizon,orbitfp7/horizon,r-icarus/openstack_microserver,eayunstack/horizon,doug-fish/horizon,flochaz/horizon,aaronorosen/horizon-congress,kaiweifan/horizon,doug-fish/horizon,Solinea/horizon,newrocknj/horizon,rickerc/horizon_audit,wangxiangyu/horizon,xme1226/horizon,wolverineav/horizon,NCI-Cloud/horizon,r-icarus/openstack_microserver,henaras/horizon,endorphinl/horizon-fork,kfox1111/horizon,Dark-Hacker/horizon,damien-dg/horizon,Hodorable/0602,tanglei528/horizon,orbitfp7/horizon,luhanhan/horizon,watonyweng/horizon,luhanhan/horizon,ging/horizon,anthonydillon/horizon,django-leonardo/horizon,Metaswitch/horizon,icloudrnd/automation_tools,henaras/horizon,netscaler/horizon,yjxtogo/horizon,watonyweng/horizon,agileblaze/OpenStackTwoFactorAuthentication,CiscoSystems/avos,noironetworks/horizon,Solinea/horizon,yeming233/horizon,CiscoSystems/horizon,Tesora/tesora-horizon,redhat-openstack/horizon,rickerc/horizon_audit,damien-dg/horizon,spring-week-topos/horizon-week,yanheven/console