fixes for collectory tmp directory and sandbox

fixes for collectory tmp directory and sandbox - includes setup for
standalone hub
doco