Changed to xmlhttprequests in getusermessagesbytoken/email

Signed-off-by: anickelbagoffunk <christoferpalmgren@gmail.com>