RelatedObjectLookups.js updates accordingly to Django 1.6 changes

Old version of showRelatedObjectLookupPopup function breaks raw id fields popups (they are rendered as regular change list views) when using Django 1.6, these changes are not backward compatible with Django <= 1.5.5 though.