Fix most open issues

- make tools/sdk.sh have a -f (fail-fast) mode that will cause it to exit with the first failure.
- ensure that dependencies (SmartStore & SmartSync) get built
- add NPM package step