Added API resource to get seen task types

Added GET /api/task/types so we can get the list of seen task types
from the API.
Added missing authentication decorator.
Added PyCharm to .gitignore
Shouldn't 'tasks-types' be 'task-types'?