Improvement and fix of Rest interface
Simplify HttpSession