Refactored data registry.

  - renamed to repository
  - dataref to handle
  - made repository return workspace
  - javadocs and comment cleanup