I used some heavy-duty folding shelf brackets (rated at 750lbs!) for the table. They are just made of steel, so I am not sure how long they will last. I painted them black for looks as well as to try to make them last a little longer.
The table didn't come out quite as "elegant" as I first imagined, but it will have to do for now.
This is the folded position.