Decode the pid when retrieved from the url as it may be encoded, which causes problems with tuque.
Merge pull request #229 from nigelgbanks/7.x-decode-pid-from-url-on-object-load

Decode the pid when retrieved from the url as it may be encoded, which c...
Merge branch '7.x' into 7.x-allow-viewers-based-on-content-type
Updated function header.