LL-776 #close Logic changed.

Also changed the logic of checking if something has been loaded. Will
use a central storage on an entity for that. Changed the check of an
entity thumbnail haven been loaded, using the same general logic. Also
changed the viewCount loading to correspond with the new pattern.
Using underscore method instead of typeof.