Fix bug in db get_suitearch_* funcs that was failing to set master_weight in return object. Also sort get_supported_build_env_suite_arches() by suite_arch master_weight.
Tweak debug in controller.
resolve conflicts in controller.