Move UID allocation to HBaseStore

Similar here as in the previous comment