Added flush handler.
Renamed sess to handler.
Doxygen fixes.
Renamed index to ordidx.
Add session to pool.