A modular table-top setup for ultrafast x-ray diffraction