Refactored Resource -> ExplanationStorage, new interface for Explanation...

... Storage (add random access). Fixed import problems. Definitions parser is almost ready and uses modern concepts. Added serialisation for Explanation