[TIMOB-15983] Fold Titanium Diagnostic Test into CLI

https://jira.appcelerator.org/browse/TIMOB-15983
Also note that all external dependencies (i.e. curl) MUST be allowed to be overridden with a config setting:

~~~
config.get('executables.curl', 'curl')
~~~