WV: changed to_json to as_json and cleaned up session and registration controllers