[Android] Fixed the app crashing on rotation

Rotating the screen will restart the app with the new window/orientation.
Merge pull request #641 from MarioLiebisch/android-statesfix

[Android] Fixed the app crashing on rotation
[Android] Updated example to handle screen rotation events (#531)
[Android] Rewrote key event handling

* This fixes duplicate TextEntered events and should properly handle
`AKEY_EVENT_ACTION_MULTIPLE` (including key down and key up events; as
far as possible; see comment). Unfortunately I don't have/know any IME
utilizing this, so can't test it.
* The back button is now mapped to the Escape key (best match without
adding new keys).
* The volume buttons are no longer intercepted by SFML and no longer
generate events.