massive refactoring: added mongo databases, MVC structure, first pass at button models, split out config.js from app.js