Updated to QGIS 2.0 support.

I updated the plugin to work with the new QGIS 2.0 API.