remove remaining deprecated SINGLETON macro usages
remove more deprecated uses
expand PAIR_SCORE
clean up support for runtime deprecation messages
pass Model to constructor of oiptimizer
clean up uses of deprecated macros/particle-based functions

compilation of main modules is now clean