Add fileremoved event so that we can bind to it from outside

We are using this in external javascript to display different messages depending on whether there are files present.