The Multiscale Morphology Filter: Identifying and Extracting Spatial Patterns in the Galaxy Distribution