Engine refactor: no more statics in the engine

The main changes are in [adec5ea](https://github.com/anserran/ead/commit/adec5ea6450f64a45b89942bc2e3ad74f1491df6).

The other two commits are changes in the editor to avoid compilation error and a merge with the master branch.