Fix some build issues. moment.js is now baked into the build.

Fix some request failures. Now the disconnected state is supported.