More concise JSON serialization
Fixed cookie support, implemented passwords via OpenSSL, minor fixes there and there.