Remove mainapp

#77 - Finish removing mainapp.  Already moved functionality to the
app.js file.