Remove ability to call locparse as a script. Move $migrate out of global area so tests do not error anymore. References #142.