Added cookie support

Works against localhost using crowd - but may still have some problems
with ssl/proxying