Fallback on the internal ip address when no x-real-ip headers etc is available

Inserting the tokendata_id and (evantually) the user_id in the tokenData
Correcting the unmatched code, in order to write in the token_unmatched namespace (and NOT the unmatched)
Saving the IP address in the __gw_address field in userdata.post and tokendata.post