MapfileParser Refactor

Begin to create member variables instead of autogenerated variables read
from the mapfile at each call.
mapfileparser refactoring

OutputFormat related refactoring
Fixing double-free
Merge remote-tracking branch 'origin/refactor-mapfileparser' into refactor-mapfileparser