Eliminate global functions to get values; use extern vars instead.
Merge branch 'master' of https://github.com/SevenBits/Enterprise