Move AS event handling from browser to view.

Having event handling in the browser made sense when the approach was to
propogate an event over to the topology, but once we switched to the
database as a single source of truth, this code became very clunky.
Moving it into the view allowed for much cleaner method and should make
debugging much easier as the code is spread across fewer files.
I am not sure there is a guarantee that they will be executed in the order they are registered, are there any issues with them being called out of order?