Refactoring
Merge branch 'master' of github.com:idega/com.idega.core

* 'master' of github.com:idega/com.idega.core:
  Added method to find entity or it's sub-type by primary key
Fix to subtypes search