Feature/api work package update

@mtakac why do we need case insensitivity here?

Until we move to Rails 4, not just `Type.find_by_name`.