replaced id generation with a rfc4122 v.4 compliant guid generator

as other users allready pointed out - id generation with ``new Date`` running in ID collisions with newer browsers.
this replaces the current id generation with valid rfc4122 version 4 guids to solve this problem.