Merge pull request #553 from Sleaker/master

Move WindowEvents to API packages
Improved end generator

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>
These are necessary to prevent breakage on server & proxy

Signed-off-by: Nick Minkler <sleaker@gmail.com>