Add JSON en/decoding
Implement session filter