Fix  typescript compilation
Merge pull request #76 from telerik/fatme/fix-typescript-compilation-error

Fix  typescript compilation
* Fix compiling invalid file from typescript compilation service
* Improve hooks error handling
Merge pull request #77 from telerik/fatme/fix-compiling-invalid-file

Fix compiling invalid file
Fix dispatcher code to remove unneeded wait()
Small code beautifications

refs http://teampulse.telerik.com/view#item/274546
Merge pull request #78 from telerik/totev/low-port

Fix dispatcher code to remove unneeded wait()
Fix android emulator when more than one device is used

Remove adb wait-for-device call as it raises error when there's more than one device and/or emulator currently running. Use adb -s <emulatorId> instead of adb -e, so having more than one device currently running will not raise errors. Add printing of "Waiting for initialization......" when logging level is info and adding "." for each retry cycle. Add --retryCount option, so you can define the exact number of retries that will be executed before the emulate operation fails.
Remove image from IEmulatorOptions as it is not needed anymore. Add new method to helpers which is used when you want to print some message on the same line only when logging level is info (for example printing Waiting... and adding dots until operation is finished). Refactor execFile method to remove Future.wrap. Add AndroidEmulatorService.RETRY_COUNT constant.
Merge pull request #79 from telerik/vladimirov/fix-emulate-android

Fix android emulator when more than one device is used
Fix unnecessary adb server restarting

In case the user had not specified image (--avd option is not used) when using emulate command, there's no need to retry restarting adb server in case there's at least one running emulator. We can use it directly.
Merge pull request #80 from telerik/vladimirov/fix-adb-server-restarts

Fix unnecessary adb server restarting
Improve message for unable to emulate

Improve message when android emulator cannot start. When the virtual device is using Android L and its RAM <= 512MB the emulator cannot start the application. Moved sleeping at the end of each retry when checking for emulator boot in order to prevent unnecessary 10 secs wait.
Merge pull request #81 from telerik/vladimirov/fix-android-L

Improve message for unable to emulate
Add correct waits in dispatcher

Rollback commit: 3bbc0e3b8fa4b3496f72a473ab9ae99c4f90a214 dequeue method returns future, so it should have wait(). Also the action should have wait(). So we need two waits. This was breaking remote command.
Merge pull request #82 from telerik/vladimirov/fix-remote-emulator

Add correct waits in dispatcher
Fix missing () in dispatcher

Fixes http://teampulse.telerik.com/view#/12319
Merge pull request #83 from telerik/vladimirov/fix-error-in-dispatcher

Fix missing () in dispatcher
Release console when ios-sim cannot start

Add call for ios-sim --version in order to determine if Xcode and ios-sim versions are compatible. In case they are not, the command will return error - catch it and break the whole execution. Print the error message from ios-sim --version, but remove its stack first as any throw in child_process.stderr.on(...) prints its callstack automatically. So new option is added to errors - hideCallStack. In case it is true, the stack option is set to null.
Merge pull request #85 from telerik/vladimirov/print-errors-from-ios-sim

Release console when ios-sim cannot start
Fix typescript compilation
Merge pull request #84 from telerik/fatme/fix-typescript-compilation

Fix typescript compilation