Extend the @loadmodel to support its usage for plugins
Extend the @loadmodel to support its usage for plugins

Basic usage of the @loadmodel is to convert an ID to an actual
model object, but was only allowed on the core model objects.
This patch allow its usage in plugin as well.

Usage example:
 @loadmodel(map={'id': 'item'}, model='item', level=AccessType.READ
 @loadmodel(map={'id': 'task'}, model='task', plugin='ec2_cloud', level=AccessType.ADMIN)

jbeezley/girder,essamjoubori/girder,data-exp-lab/girder,RafaelPalomar/girder,girder/girder,manthey/girder,msmolens/girder,chrismattmann/girder,girder/girder,opadron/girder,essamjoubori/girder,data-exp-lab/girder,manthey/girder,adsorensen/girder,opadron/girder,kotfic/girder,Xarthisius/girder,RafaelPalomar/girder,sutartmelson/girder,Xarthisius/girder,adsorensen/girder,adsorensen/girder,Kitware/girder,jbeezley/girder,kotfic/girder,msmolens/girder,msmolens/girder,jcfr/girder,chrismattmann/girder,essamjoubori/girder,jbeezley/girder,jcfr/girder,kotfic/girder,sutartmelson/girder,essamjoubori/girder,Kitware/girder,RafaelPalomar/girder,salamb/girder,sutartmelson/girder,chrismattmann/girder,adsorensen/girder,Xarthisius/girder,msmolens/girder,chrismattmann/girder,salamb/girder,Xarthisius/girder,msmolens/girder,RafaelPalomar/girder,data-exp-lab/girder,essamjoubori/girder,chrismattmann/girder,Kitware/girder,girder/girder,sutartmelson/girder,opadron/girder,manthey/girder,data-exp-lab/girder,Xarthisius/girder,Kitware/girder,kotfic/girder,data-exp-lab/girder,sutartmelson/girder,adsorensen/girder,jcfr/girder,manthey/girder,opadron/girder,salamb/girder,jbeezley/girder,jcfr/girder,jcfr/girder,kotfic/girder,salamb/girder,salamb/girder,RafaelPalomar/girder,opadron/girder,girder/girder