core: add some convenience functions to z_session_page for looking up session_id, stopping and checking attach state by context
core: poll the task queue by date, oldest task first.