Move work package details controller
Resolve state params in work packages controller, minor refactorings