move enum into class and using enum class

use `enum class` in `WebSocket` and `AssetsManager`
move enum in Control.h into class `Control`
add CCDeprecated-ext.cpp