Improve layer import function

* Use a with statement (Python 2.7) to open zip archive.
* Use grass.tempdir (GRASS 6.4.2) to save code lines.
* Handle KeyError (file not found in archive) exceptions.