Add session and referer support

The better to debug with!