added branch to applied hooks table (remote_repo_hooks.remote_repo_ref_id)
apply hooks for every branch separately