remove gears, solve bug #340

-Removed deprecated Google Gears API
-Close the infoview when adding a tree