Better handle mapserver errors.
Add open and export buttons.