Once a thriving mining town, Madrid found new life as an art community that digs its quirks.