Re- written CameraWidgetForPhonegap to be AMD. Also added extra check to see if entity provided inherits from "System.FileDocument".