Cleanup of app.js and moving to a more componentized structure as described in The Node Beginner Book.

Transitioning away from the monolithic app.js approach.