Fix/work package form issue categories

Fixes 500 when rendering the work_package form rendering.

In addition, it adapts category creation to rails3/work_packages.