Add the Dispose method

We are going to need a list of maps in the next patches, but it is not
really handy to have that holding a reference to a huge in-memory image.
Add path property to the Map class

Gonna be useful on the upcoming patches.
Put the KML Writer in a module

I want to take this logic away from the main script file and open
room for new writers, like one for generating the tile script.