An investor has acquired a mixed-use building in Rahway’s growing arts district, where it’s now weighing plans for new commercial space and residential units.