Added common function for deleting a device assignment. Added function
to site detail page for assignments.