Add some more events and move logging out of the core (#8 & #24)