Update jsonauth method
Update jsonauth method

- Always return a json not an integer if the authentication was or not successful
- Now it reads a base64 chain in order to support usernames with spaces

FREEPBX-14848

FreePBX/xmpp,FreePBX/xmpp,FreePBX/xmpp,FreePBX/xmpp