Use long int instead uint64_t
Merge pull request #181 from Ansa89/master

Use long int instead uint64_t
wrap tox_get_name in function that truncates name if it's too long
autosave every 60 seconds