This file should not be merged until it is updated to work with the current version of bosswave. bw.event() was removed in favour of Resource.event()