Cleaned up the clone process so the baseitem does it's own part and the event and todo items also.
Removed loginfo function. As it slows down the items.

Signed-off-by: Michel <info@1st-setup.nl>
Change the this.globalFunctions to a global variable within the scripts.

Signed-off-by: Michel <info@1st-setup.nl>
moved this.timeZones to a global internal variable.
Fixed small bug when recurrenceinfo is null it would throw an expection because we tried to clone it.

Signed-off-by: Michel <info@1st-setup.nl>
Added clone function to xml2json

Signed-off-by: Michel <info@1st-setup.nl>
Moved from usin createinstance for new events and todo items to new object function.

Signed-off-by: Michel <info@1st-setup.nl>
Removed some duplicate toString functions.

Signed-off-by: Michel <info@1st-setup.nl>