#1508 refactoring: removed unused classes, unified calculation of profits and signals, implemented profit-evaluator.