Make get_object_by_id() work for most Django objects.

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

This patch makes other standard Django apps reusing Horizon easier.