Cleanup

Cleanup logging and split functionality from routes/index.js between
routes/scrapbook.js and routes/index.js