Move UID allocation to HBaseStore

This getId call does not do any width checks currently however it's really awkward to do that in getId currently. I'm working on a fix but that will change a lot of other stuff too.