fixes moved entity classes to different package so it will be easier to reuse them when implementing API added possibility to return related documents for graph and tree type repositories