Improvements in the image annotation from OCD results

  - Now client side is more intelligent in loading image from OCD search
    results for annotation. Also, an endpoint in the server is available to
check the resource type of a URL. The loadURL function can be told explicitly
what type of resource it has to load for annotation. If it is not told, it
tries to find out by various means.