Fix/work package form issue categories

OpenProject Issue: https://www.openproject.org/issues/1391

Fixes 500 when rendering the work_package form rendering.

In addition, it adapts category creation to rails3/work_packages.