[REF] wrap long lines in stock_scanner.py
[IMP] improve search views of scenario steps and transitions

Added a related field to the scenario itself on the transitions
so that we are able to filter and sort transitions based on the scenario.