Bug Fix

add support for some missing cmd: APP_CMD_SAVE_STATE, APP_CMD_GAINED_FOCUS, APP_CMD_LOST_FOCUS

add some lose LOGD call

make source code a little bit better format
Query Min and Max Swap Interval

query min and max swap interval use eglGetConfigAttrib

try to disable vsync, but looks not works and error/warning will generate, also no effect to XX frame skipped
Add build and test script

build.sh will cal ndk-build

test.sh will call ant to uninstall, ndk-build to build, ant install debug apk to device

start_emulator.sh will start avd named nexus4