Web app refactor. Require.js added.