Make Trait search go up the inheritance tree

Currently to determine if an entity is uploadable the class is checked for the presence of the uploadable trait. The technique used doesn't take into account a parent class having the trait.