add missing import
linter fixes
inject TestCase.client session cookie (if any) to phantomjs

This allows for easy testing of logged in behaviour without going
through login procedure with casper.
add documentation for session cookie injection