Truncate tag names corresponding to long backend folder names.

We were already truncating long folder names, but because the associated tag
name was 'gmail-<folder name>', it was still too long.

Also validate tag name length when tags are created via the API.

Fixes T81.
Add gmailaccount to list of tables to keep in bin/clear-db.