Added code for dismissible alerts

This is dependant on the <a href="https://github.com/Pacoup/wet-boew/tree/feature-dismissablealert">feature-dismissablealert branch</a> I'm working on. You can merge now if you want, but the functionality won't work until I create the PR for the other branch and it's merged.