Common code from both sample apps moved to bootstrap.js and stackrouter.js