Extracts common modules

1. Extract common modules which can be used by both Node.js and browser.
Currently, only utils.js are tested.
2. Folder name change : Change www to viewer
3. rename batch files for running viewer in offline mode