changed cookieSession for session in express
 Fixes #546
 removed res.end calls missed in test/lib.rest
Merge pull request #547 from adaptlearning/issues/546

 changed cookieSession for session in express