Why can't I scale/rotate/translate properly and what is that orange line?
Snapping mode is turned on, and your scaling operation is snapping to nearby geometry, giving you unexpected results.
Simply turn off snapping mode (hit Shift+Tab) and your issue should be resolved.