Unify stateManager, init procedures and window into pe::engine
Add license to engine.cpp
Add onEvent() virtual method to pe::State.

This is the new method for a State to listen to events.
Move fps calculation to pe::engine
Move key state handling to engine
Engine: Add requestQuit() to allow user defined quits