added encryption and handle utils
changed handle to use built-in UUID
cleanups, fixes and general refactoring :P