TIMOB-17544 CLI: Log users into dashboard.appcelerator.com

- With the introduction of On-Demand model integration changes, CLI should login into Appclerator Platform (360) by default, and then based on the API server url returned by the 360 login, we should do a login into API server.
- Considering that the 360 is the priority login, the auth APIs are modified to login into 360 now and the original API server details are forked into a different js file (authapiserver.js).
- When the user attempts to login, it logs into 360 server, grabs the API server details from the login payload, and then, attempt to login into API server and then, it attempts to retrieve the organization details and write the details into appc_session.json in home directory.



Change this to a `some()` call like this:

```
var sid = null,
	re = /^connect\.sid=([^;]+)/;
cookies.some(function (cookie) {
	var m = cookie.match(re);
	return m && (sid = m[1]);
});
```