Intermediate commit

Several changes. Reorganized things. Prepared for registering results.
Introduced event sourcing. Clean-ups, etc. Not complete yet, though.