Added requirejs and restructured client app.