added cookies and some other support for working with deployed meteor