Here's how freelancers can thrive in a dicey economy