Taking the config code out of main index.js and putting it in spec.js which does all the database connectivity and other set up.
Authentication helper functions to take access decision for different types of users.