Added a toggle selection event.
Code refactoring in de/serialization helpers.
Toggle selection event renamed to Toggle request