Modifications to test.js

This is where the express session handling is being tested. Eventually
this will be migrated over to server.js.

Right now it can hanld https request and create sessions. Next thing to do
is add secure cookies.