Splitting API code in several files.
* generated password on an api call * use this password to authenticate on prosody * using helper getAuthUser when available, else fallback to custom code