Feature/rails3 fix timelog report

This PR fixes OPF bug 483 and a JS error in the time report form.