mod_admin_web: refactor code slightly.
mod_admin_web: properly sort retracts when updating sessions. (Fixes #135)