added metadata support
changed script for versioning
added logout handling event