Refactored core framework and example test to improve ease of use
Added a helper method to registry the types of an aggregate and its events