[EE] Refactor branch chooser in issuable form

Merged username-removed-128633 requested to merge refactor-issuable-branch-chooser-ee into master

Continuation of gitlab-org/gitlab-ce#23864.

Brother of gitlab-org/gitlab-ce!7852.