fixed travis build error on old redmine versions
fixed self referencing of author
fixed attribute name in remote_repo_ref factory
fixed redmine factories
change the process of applying hooks; 1. find only one hook for commit; 2. If hook for any branch then apply it only once for commit; 3. Else apply hook once for every applicable branch.