Added delete to sample app
Refactored app.js to prepare to extract code for formsAPI