add resources messages, and a basic tests in main-window
add resources messages, and a basic tests in main-window

fireball-x/deprecated-editor,cocos-creator/deprecated-editor,fireball-x/deprecated-editor,cocos-creator/deprecated-editor