Added zindex & events parameters to polygon directive.

Also cleaned up redundant code in polygon directive and used equivalent functions available in GmapUtil service