added dump functionality

Adds some data inspection and dumping functionality - namely the ability to retrieve a list of spaces & to dump out all events in the database