This patch adds ability to handle any select event in View3D.
See the use case in attached file.
I would like to use such handler in normal editor for value update in UI in the same way as in attached file.
I've made hooks for the following set of operators:
MESH_OT_select_all, OBJECT_OT_select_all, VIEW3D_OT_select_lasso, VIEW3D_OT_select_border, VIEW3D_OT_select_circle.
This patch also fixes the bug in VIEW3D_OT_select_border where the operator always returned OPERATOR_CANCELLED in the object mode.