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
fix window cleanup bugs & give prompt its own cleanup func
exit toxic properly on ^C
fix potential race conditions
Try to adapt to new toxav changes