weakref memoizing of sensors objects

Root objects keeps a weak reference to constructed sensor objects
new versioning scheme for sensor branch
some comments added
code refactored