clearing out factories on app reload

These two lines ensure that the bean factory is cleared from the application scope on app reload.

Feel free to merge or ignore as you see fit! :)

https://groups.google.com/forum/#!topic/framework-one/wCEHMA_ni_I