Feature/rails3 rename view issue hooks

Implements https://www.openproject.org/issues/2267 and fixes some minor bugs.