Update for 2.0

These are some changes that fix some issues and update the plugin to work with QGIS 2.0 and all providers.