Updated for latest versions of body parser and express sessions