added new content events to clean up stage events.  added first mocha functional test