Refactored app.js and app-test.js to remove duplicate config code.

Moved config code contiaining the routing information in to a common
file.