spiral gesture and plugin SDK enhancements

1. enhance spiral in js, support start anywhere, any direction, in/out
2. enhance plugin sdk do sign-up and sending data to cloud when network
is available without reopen the app.