The Star-forming Main Sequence and the Contribution of Dust-obscured Star Formation since z ∼ 4 from the Far-UV+IR Luminosity Functions