Code reorganization: cleaned up controllers, models, put handlebars templates into partials