Retro Clean is highly recommended (by Cindy Needham, among others) for taking stains out of vintage fabric. As to whether to wash it before or after quilting, I think that depends on the condition of the top. If it's so dirty or smelly that you don't want to handle it, then wash it carefully by hand before quilting. But if it's just a little soiled, I would quilt it first.