[build_mode*] script bug fix.
All modes constructor standardization.
[mode_interface] missing variables added.
[modes_controller] segments support added.