added sync capabilities to drawtools plugin

The sync plugin doesn't work well with Array's so the simplest solution seemed to be to store the layers in an Object. (the update method for sync uses "Object.keys(...)" )

This should ensure that existing localStorage gets read and stored in the new format.