logging assembly discovery

#1562
This is going to have the problem that we discussed last week - namely this will run before any user-code that modifies the application model