Your filing status affects everything from your tax brackets to whether you have to file at all. Here’s how the rules work.