[TIMOB-13908] Added better error handling with logging in/out and saving the cli config.
Merge pull request #42 from appcelerator/timob-13908

[TIMOB-13908] Added better error handling with logging in/out and saving...