New event-oriented content handling, and added the first functional repo class.