Updated most files to conform to drupal coding standards, abstracted a function that was being used by both islandora_image_annotation and islandora_critical_edition.