updating gitignore: test/test -> test/testsuite
Refactoring mapfileparser

Sharing code between getMetadatas() and getConfigOptions().