adds client-app stuff, fixes app.js to handle correctly.