Some work on getting cookies/session established, not functional yet.