v0.5 Update to QGIS API 2