Adds logger and spawn modules to platform scripts

* Adds ansi dependency to node_modules
* Adds nopt dependency to node_modules
Rewrite build script using NodeJS

* use newly introduced logger module to print output instead of console methods
Rewrite run script using NodeJS

* use newly introduced logger module to print output instead of console methods
* removes emulate script since it almost a duplicate of old run script and can be replaced with `run --emulator` command
* removes install-device and install-emulator scripts since they can be replaced with `run --nobuild --device/--emulator`
Rewrite clean script using NodeJS

* use newly introduced logger module to print output instead of console methods