fix race condition in vars creation vs Register.
switch to a more strict register scheme
Merge branch 'stats-fix'
Merge commit 'e03aaf7be6681d225eb73dbba2b34c1350b90129'
Merge branch 'master' into resharding
Only allowing tests that pass for now.