Broken initialize.js. First try at making all submodules functions public (available via state object).